gd-bs 6.6.10 → 6.6.11
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.
|
@@ -411,15 +411,25 @@ var _Dropdown = /** @class */ (function (_super) {
|
|
|
411
411
|
currentValues = [currentValues];
|
|
412
412
|
}
|
|
413
413
|
var _loop_1 = function (i) {
|
|
414
|
-
var
|
|
414
|
+
var currentValue = currentValues[i];
|
|
415
|
+
var currentItem = {};
|
|
416
|
+
// See if this is a string
|
|
417
|
+
if (typeof (currentValue) == "string") {
|
|
418
|
+
// Set the text property
|
|
419
|
+
currentItem.text = currentValue;
|
|
420
|
+
}
|
|
421
|
+
else {
|
|
422
|
+
// Set the item
|
|
423
|
+
currentItem = currentValue;
|
|
424
|
+
}
|
|
415
425
|
// Find the item
|
|
416
426
|
var item = (_a = this_1.props.items) === null || _a === void 0 ? void 0 : _a.find(function (item) {
|
|
417
427
|
// Match by the text property if the value doesn't exist
|
|
418
428
|
if (typeof (item.value) === undefined) {
|
|
419
|
-
return item.text ==
|
|
429
|
+
return item.text == currentItem.text;
|
|
420
430
|
}
|
|
421
431
|
// See if the value property matches
|
|
422
|
-
return item.value == value;
|
|
432
|
+
return item.value == currentItem.value;
|
|
423
433
|
});
|
|
424
434
|
// See if an item was found
|
|
425
435
|
if (item) {
|