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.
@@ -488,7 +488,7 @@ var _Dropdown = /** @class */ (function (_super) {
488
488
  }
489
489
  else {
490
490
  var isForm = menu.nodeName == "SELECT";
491
- var value = [];
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
- value.push(item.props.value || item.props.text);
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(value);
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