gd-bs 6.9.7 → 6.9.9
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/build/components/dropdown/index.js +11 -3
- package/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.js +1 -1
- package/dist/gd-bs.min.js +1 -1
- package/index.html +3 -2
- package/package.json +1 -1
- package/src/components/dropdown/index.ts +11 -3
|
@@ -558,10 +558,18 @@ var _Dropdown = /** @class */ (function (_super) {
|
|
|
558
558
|
items: this.generateCheckboxItems(),
|
|
559
559
|
multi: this.props.multi,
|
|
560
560
|
value: this.generateCheckboxValue(this.props.value),
|
|
561
|
-
onChange:
|
|
561
|
+
onChange: function (selectedItems, allItems, ev) {
|
|
562
|
+
var _a;
|
|
563
|
+
// See if this is a multi checkbox
|
|
564
|
+
if (_this.props.multi) {
|
|
565
|
+
// Toggle the menu if it's not visible
|
|
566
|
+
setTimeout(function () {
|
|
567
|
+
_this.isVisible ? null : _this.toggle();
|
|
568
|
+
}, 25);
|
|
569
|
+
}
|
|
562
570
|
// Pass the current values
|
|
563
|
-
_this.props.onChange(selectedItems, ev);
|
|
564
|
-
}
|
|
571
|
+
(_a = _this.props) === null || _a === void 0 ? void 0 : _a.onChange(selectedItems, ev);
|
|
572
|
+
}
|
|
565
573
|
});
|
|
566
574
|
}
|
|
567
575
|
else {
|