gd-bs 6.6.11 → 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
|
});
|
|
@@ -415,8 +418,9 @@ var _Dropdown = /** @class */ (function (_super) {
|
|
|
415
418
|
var currentItem = {};
|
|
416
419
|
// See if this is a string
|
|
417
420
|
if (typeof (currentValue) == "string") {
|
|
418
|
-
// Set the text
|
|
421
|
+
// Set the text and value properties
|
|
419
422
|
currentItem.text = currentValue;
|
|
423
|
+
currentItem.value = currentValue;
|
|
420
424
|
}
|
|
421
425
|
else {
|
|
422
426
|
// Set the item
|