gd-bs 6.7.0 → 6.7.1
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
|
@@ -498,7 +498,7 @@ class _Dropdown extends Base<IDropdownProps> implements IDropdown {
|
|
|
498
498
|
});
|
|
499
499
|
} else {
|
|
500
500
|
let isForm = menu.nodeName == "SELECT";
|
|
501
|
-
let
|
|
501
|
+
let values: string[] = [];
|
|
502
502
|
|
|
503
503
|
// Parse the items
|
|
504
504
|
let items = this.props.items || [];
|
|
@@ -508,7 +508,7 @@ class _Dropdown extends Base<IDropdownProps> implements IDropdown {
|
|
|
508
508
|
this._items.push(item);
|
|
509
509
|
|
|
510
510
|
// See if this item is selected
|
|
511
|
-
if (item.isSelected) {
|
|
511
|
+
if (item.isSelected) { values.push(item.props.value || item.props.text); }
|
|
512
512
|
|
|
513
513
|
// See if this isn't for a form
|
|
514
514
|
if (!isForm) {
|
|
@@ -521,7 +521,7 @@ class _Dropdown extends Base<IDropdownProps> implements IDropdown {
|
|
|
521
521
|
}
|
|
522
522
|
|
|
523
523
|
// Set the value
|
|
524
|
-
this.setValue(
|
|
524
|
+
this.setValue(this.props.multi ? values : values[0]);
|
|
525
525
|
|
|
526
526
|
// See if this is a form
|
|
527
527
|
if (isForm) {
|