gd-bs 6.6.84 → 6.6.86

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.
@@ -452,15 +452,7 @@ var _Dropdown = /** @class */ (function (_super) {
452
452
  currentItem = currentValue;
453
453
  }
454
454
  // Find the item
455
- var item = (_a = this_1.props.items) === null || _a === void 0 ? void 0 : _a.find(function (item) {
456
- // Match by the text property if the value doesn't exist
457
- if (typeof (item.value) === undefined) {
458
- return item.text == currentItem.text;
459
- }
460
- // See if the value property matches
461
- return item.value == currentItem.value;
462
- });
463
- // See if an item was found
455
+ var item = (_a = this_1.props.items) === null || _a === void 0 ? void 0 : _a.find(function (item) { return item.value == currentValue || item.text == currentValue; });
464
456
  if (item) {
465
457
  // Add the text property
466
458
  values.push(item.text);
@@ -199,7 +199,10 @@ var _ListBox = /** @class */ (function (_super) {
199
199
  * Public Interface
200
200
  */
201
201
  // Gets the selected items
202
- _ListBox.prototype.getValue = function () { return this._selectedItems; };
202
+ _ListBox.prototype.getValue = function () {
203
+ // Return the value
204
+ return this.props.multi ? this._selectedItems : this._selectedItems[0];
205
+ };
203
206
  // Sets the options
204
207
  _ListBox.prototype.setOptions = function (items) {
205
208
  if (items === void 0) { items = []; }