gd-bs 6.7.3 → 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.
@@ -469,7 +469,7 @@ var _Dropdown = /** @class */ (function (_super) {
469
469
  // Clear the items
470
470
  this._items = [];
471
471
  // Get the menu
472
- var menu = this.el.querySelector(".dropdown-menu") || this.el.querySelector("select");
472
+ var menu = this.el.querySelector(".dropdown-menu") || this.el.querySelector("select") || (this.el.classList.contains("dropdown-menu") ? this.el : null);
473
473
  if (menu) {
474
474
  // See if we are creating checkboxes
475
475
  if (this.props.isCheckbox) {
@@ -613,7 +613,7 @@ var _Dropdown = /** @class */ (function (_super) {
613
613
  return;
614
614
  }
615
615
  // Get the menu
616
- var menu = this.el.querySelector(".dropdown-menu") || this.el.querySelector("select") || this.el.classList.contains("dropdown-menu");
616
+ var menu = this.el.querySelector(".dropdown-menu") || this.el.querySelector("select") || (this.el.classList.contains("dropdown-menu") ? this.el : null);
617
617
  if (menu) {
618
618
  // Clear the menu
619
619
  while (menu.firstChild) {