gd-bs 6.7.4 → 6.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-bs",
3
- "version": "6.7.4",
3
+ "version": "6.7.5",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -480,7 +480,7 @@ class _Dropdown extends Base<IDropdownProps> implements IDropdown {
480
480
  this._items = [];
481
481
 
482
482
  // Get the menu
483
- let menu = this.el.querySelector(".dropdown-menu") || this.el.querySelector("select");
483
+ let menu = this.el.querySelector(".dropdown-menu") || this.el.querySelector("select") || (this.el.classList.contains("dropdown-menu") ? this.el : null);
484
484
  if (menu) {
485
485
  // See if we are creating checkboxes
486
486
  if (this.props.isCheckbox) {