gd-bs 6.3.0 → 6.3.2

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.
@@ -271,7 +271,6 @@ var _Dropdown = /** @class */ (function (_super) {
271
271
  options: {
272
272
  arrow: false,
273
273
  trigger: "click",
274
- content: this._elMenu,
275
274
  offset: [0, 4]
276
275
  }
277
276
  };
@@ -279,6 +278,8 @@ var _Dropdown = /** @class */ (function (_super) {
279
278
  props = this.props.onMenuRendering ? this.props.onMenuRendering(props) : props;
280
279
  // Create a popover to display the menu
281
280
  this._popover = (0, popover_1.Popover)(props);
281
+ // Set the popover content
282
+ this._popover.setContent(this._elMenu);
282
283
  }
283
284
  };
284
285
  // Configures the dropdown for a form
@@ -114,6 +114,11 @@ var _Toast = /** @class */ (function (_super) {
114
114
  _this.props.onClick(_this.el, _this.props.data);
115
115
  });
116
116
  }
117
+ // See if we are auto-hiding this toast
118
+ if (this.props.options && this.props.options.autohide) {
119
+ // Wait for the delay
120
+ setTimeout(this.hide.bind(this), this.props.options.delay || 5000);
121
+ }
117
122
  };
118
123
  /**
119
124
  * Public Interface