release: 3.8.1

This commit is contained in:
Grzegorz 2021-06-28 09:21:56 +02:00
parent d80a54c79a
commit 9640f31de2
12 changed files with 17 additions and 12 deletions

View File

@ -1,5 +1,5 @@
MDB5 MDB5
Version: FREE 3.8.0 Version: FREE 3.8.1
Documentation: Documentation:
https://mdbootstrap.com/docs/standard/ https://mdbootstrap.com/docs/standard/

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
css/mdb.min.css vendored
View File

@ -1,6 +1,6 @@
/*! /*!
* MDB5 * MDB5
* Version: FREE 3.8.0 * Version: FREE 3.8.1
* *
* *
* Copyright: Material Design for Bootstrap * Copyright: Material Design for Bootstrap

File diff suppressed because one or more lines are too long

View File

@ -12,7 +12,7 @@
<!-- Google Fonts Roboto --> <!-- Google Fonts Roboto -->
<link <link
rel="stylesheet" rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap"
/> />
<!-- MDB --> <!-- MDB -->
<link rel="stylesheet" href="css/mdb.min.css" /> <link rel="stylesheet" href="css/mdb.min.css" />

4
js/mdb.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{ {
"name": "mdb-ui-kit", "name": "mdb-ui-kit",
"version": "3.8.0", "version": "3.8.1",
"main": "js/mdb.min.js", "main": "js/mdb.min.js",
"homepage": "https://mdbootstrap.com/docs/standard/", "homepage": "https://mdbootstrap.com/docs/standard/",
"repository": "https://github.com/mdbootstrap/mdb-ui-kit.git", "repository": "https://github.com/mdbootstrap/mdb-ui-kit.git",

View File

@ -67,6 +67,11 @@ const METHOD_POSITION = 'position';
class ScrollSpy extends BaseComponent { class ScrollSpy extends BaseComponent {
constructor(element, config) { constructor(element, config) {
super(element); super(element);
if (!getSelectorFromElement(element)) {
return;
}
this._scrollElement = this._element.tagName === 'BODY' ? window : this._element; this._scrollElement = this._element.tagName === 'BODY' ? window : this._element;
this._config = this._getConfig(config); this._config = this._getConfig(config);
this._selector = `${this._config.target} ${SELECTOR_NAV_LINKS}, ${this._config.target} ${SELECTOR_LIST_ITEMS}, ${this._config.target} .${CLASS_NAME_DROPDOWN_ITEM}`; this._selector = `${this._config.target} ${SELECTOR_NAV_LINKS}, ${this._config.target} ${SELECTOR_LIST_ITEMS}, ${this._config.target} .${CLASS_NAME_DROPDOWN_ITEM}`;