gd-bs 6.7.4 → 6.7.6

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) {
@@ -339,7 +339,7 @@ var _FloatingUI = /** @class */ (function () {
339
339
  /**
340
340
  * Public Methods
341
341
  */
342
- _FloatingUI.prototype.setContent = function (el) { this._elContent = el; };
342
+ _FloatingUI.prototype.setContent = function (el) { this._elContent = el; this.refresh(); };
343
343
  // Hides the content
344
344
  _FloatingUI.prototype.hide = function () {
345
345
  // Remove it from the document