gd-bs 6.6.85 → 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);
|