gd-bs 6.6.12 → 6.6.13
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.
|
@@ -346,8 +346,11 @@ var _Dropdown = /** @class */ (function (_super) {
|
|
|
346
346
|
item.el.addEventListener("click", function (ev) {
|
|
347
347
|
// Prevent other events to occur
|
|
348
348
|
ev.stopPropagation();
|
|
349
|
-
//
|
|
350
|
-
_this.
|
|
349
|
+
// Ensure this isn't a multi-select
|
|
350
|
+
if (_this.isMulti != true) {
|
|
351
|
+
// Toggle the menu if it's visible
|
|
352
|
+
_this.isVisible ? _this.toggle() : null;
|
|
353
|
+
}
|
|
351
354
|
// Execute the event
|
|
352
355
|
_this.props.onChange ? _this.props.onChange(_this.getValue(), ev) : null;
|
|
353
356
|
});
|