release 6.3.0

This commit is contained in:
Grzegorz Bujański 2023-05-08 09:54:15 +02:00
parent e5a3fad625
commit ee5cd862c8
16 changed files with 35 additions and 20 deletions

BIN
License.pdf Normal file

Binary file not shown.

View File

@ -1,5 +1,5 @@
MDB5 MDB5
Version: FREE 6.2.0 Version: FREE 6.3.0
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

4
css/mdb.min.css vendored

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.rtl.min.css vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

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": "6.2.0", "version": "6.3.0",
"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

@ -1,4 +1,4 @@
import { getjQuery, onDOMContentLoaded } from '../mdb/util/index'; import { getjQuery, onDOMContentLoaded, getSelectorFromElement } from '../mdb/util/index';
import EventHandler from '../mdb/dom/event-handler'; import EventHandler from '../mdb/dom/event-handler';
import SelectorEngine from '../mdb/dom/selector-engine'; import SelectorEngine from '../mdb/dom/selector-engine';
import BSCollapse from '../bootstrap/mdb-prefix/collapse'; import BSCollapse from '../bootstrap/mdb-prefix/collapse';
@ -86,10 +86,12 @@ class Collapse extends BSCollapse {
*/ */
SelectorEngine.find(SELECTOR_DATA_TOGGLE).forEach((el) => { SelectorEngine.find(SELECTOR_DATA_TOGGLE).forEach((el) => {
let instance = Collapse.getInstance(el); const selector = getSelectorFromElement(el);
if (!instance) { const selectorElements = SelectorEngine.find(selector);
instance = new Collapse(el, { toggle: false });
} selectorElements.forEach((element) => {
Collapse.getOrCreateInstance(element, { toggle: false });
});
}); });
/** /**

View File

@ -133,6 +133,7 @@ class Dropdown extends BSDropdown {
// Disable Popper if we have a static display // Disable Popper if we have a static display
if (this._config.display === 'static') { if (this._config.display === 'static') {
Manipulator.setDataAttribute(this._menu, 'popper', 'static');
popperConfig.modifiers = [ popperConfig.modifiers = [
{ {
name: 'applyStyles', name: 'applyStyles',

View File

@ -73,7 +73,19 @@ class FocusTrap {
} }
_setElements() { _setElements() {
this._focusableElements = SelectorEngine.find(this._selector, this._element); const allElements = SelectorEngine.find(this._selector, this._element);
// filter out elements that are not focusable
this._focusableElements = allElements.filter((el) => {
const hasDisabledAttribute =
el.getAttribute('data-mdb-disabled') === 'true' || el.hasAttribute('disabled');
const isDisabled = el.disabled || hasDisabledAttribute;
if (!isDisabled) {
return el;
}
return null;
});
if (this._onlyVisible) { if (this._onlyVisible) {
this._focusableElements = this._filterVisible(this._focusableElements); this._focusableElements = this._filterVisible(this._focusableElements);