Skip to content

Commit

Permalink
release 6.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Grzegorz Bujański committed May 8, 2023
1 parent e5a3fad commit ee5cd86
Show file tree
Hide file tree
Showing 16 changed files with 35 additions and 20 deletions.
Binary file added License.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion README.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
MDB5
Version: FREE 6.2.0
Version: FREE 6.3.0

Documentation:
https://mdbootstrap.com/docs/standard/
Expand Down
2 changes: 1 addition & 1 deletion css/mdb.dark.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/mdb.dark.min.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/mdb.dark.rtl.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/mdb.dark.rtl.min.css.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions css/mdb.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/mdb.min.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/mdb.rtl.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/mdb.rtl.min.css.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/mdb.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/mdb.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mdb-ui-kit",
"version": "6.2.0",
"version": "6.3.0",
"main": "js/mdb.min.js",
"homepage": "https://mdbootstrap.com/docs/standard/",
"repository": "https://github.com/mdbootstrap/mdb-ui-kit.git",
Expand Down
12 changes: 7 additions & 5 deletions src/js/free/collapse.js
Original file line number Diff line number Diff line change
@@ -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 SelectorEngine from '../mdb/dom/selector-engine';
import BSCollapse from '../bootstrap/mdb-prefix/collapse';
Expand Down Expand Up @@ -86,10 +86,12 @@ class Collapse extends BSCollapse {
*/

SelectorEngine.find(SELECTOR_DATA_TOGGLE).forEach((el) => {
let instance = Collapse.getInstance(el);
if (!instance) {
instance = new Collapse(el, { toggle: false });
}
const selector = getSelectorFromElement(el);
const selectorElements = SelectorEngine.find(selector);

selectorElements.forEach((element) => {
Collapse.getOrCreateInstance(element, { toggle: false });
});
});

/**
Expand Down
1 change: 1 addition & 0 deletions src/js/free/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ class Dropdown extends BSDropdown {

// Disable Popper if we have a static display
if (this._config.display === 'static') {
Manipulator.setDataAttribute(this._menu, 'popper', 'static');
popperConfig.modifiers = [
{
name: 'applyStyles',
Expand Down
14 changes: 13 additions & 1 deletion src/js/mdb/util/focusTrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,19 @@ class FocusTrap {
}

_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) {
this._focusableElements = this._filterVisible(this._focusableElements);
Expand Down

0 comments on commit ee5cd86

Please sign in to comment.