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.
package/package.json
CHANGED
|
@@ -337,8 +337,11 @@ class _Dropdown extends Base<IDropdownProps> implements IDropdown {
|
|
|
337
337
|
// Prevent other events to occur
|
|
338
338
|
ev.stopPropagation();
|
|
339
339
|
|
|
340
|
-
//
|
|
341
|
-
this.
|
|
340
|
+
// Ensure this isn't a multi-select
|
|
341
|
+
if (this.isMulti != true) {
|
|
342
|
+
// Toggle the menu if it's visible
|
|
343
|
+
this.isVisible ? this.toggle() : null;
|
|
344
|
+
}
|
|
342
345
|
|
|
343
346
|
// Execute the event
|
|
344
347
|
this.props.onChange ? this.props.onChange(this.getValue(), ev) : null;
|
|
@@ -411,12 +414,13 @@ class _Dropdown extends Base<IDropdownProps> implements IDropdown {
|
|
|
411
414
|
// Parse the current values
|
|
412
415
|
for (let i = 0; i < currentValues.length; i++) {
|
|
413
416
|
let currentValue = currentValues[i];
|
|
414
|
-
let currentItem:IDropdownItem = {
|
|
417
|
+
let currentItem: IDropdownItem = {};
|
|
415
418
|
|
|
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
|
} else {
|
|
421
425
|
// Set the item
|
|
422
426
|
currentItem = currentValue;
|