gd-bs 6.7.0 → 6.7.2
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/bs.js +1 -1
- package/build/components/dropdown/index.js +3 -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/package.json +1 -1
- package/src/components/dropdown/index.ts +3 -3
- package/src/styles/_floating-ui.scss +2 -1
|
@@ -488,7 +488,7 @@ var _Dropdown = /** @class */ (function (_super) {
|
|
|
488
488
|
}
|
|
489
489
|
else {
|
|
490
490
|
var isForm = menu.nodeName == "SELECT";
|
|
491
|
-
var
|
|
491
|
+
var values = [];
|
|
492
492
|
// Parse the items
|
|
493
493
|
var items = this.props.items || [];
|
|
494
494
|
for (var i = 0; i < items.length; i++) {
|
|
@@ -497,7 +497,7 @@ var _Dropdown = /** @class */ (function (_super) {
|
|
|
497
497
|
this._items.push(item);
|
|
498
498
|
// See if this item is selected
|
|
499
499
|
if (item.isSelected) {
|
|
500
|
-
|
|
500
|
+
values.push(item.props.value || item.props.text);
|
|
501
501
|
}
|
|
502
502
|
// See if this isn't for a form
|
|
503
503
|
if (!isForm) {
|
|
@@ -508,7 +508,7 @@ var _Dropdown = /** @class */ (function (_super) {
|
|
|
508
508
|
menu.appendChild(item.el);
|
|
509
509
|
}
|
|
510
510
|
// Set the value
|
|
511
|
-
this.setValue(
|
|
511
|
+
this.setValue(this.props.multi ? values : values[0]);
|
|
512
512
|
// See if this is a form
|
|
513
513
|
if (isForm) {
|
|
514
514
|
// Ensure the selected values match the index
|