gd-bs 6.6.10 → 6.6.12
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,26 @@ 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 and value properties
|
|
419
|
+
currentItem.text = currentValue;
|
|
420
|
+
currentItem.value = currentValue;
|
|
421
|
+
}
|
|
422
|
+
else {
|
|
423
|
+
// Set the item
|
|
424
|
+
currentItem = currentValue;
|
|
425
|
+
}
|
|
415
426
|
// Find the item
|
|
416
427
|
var item = (_a = this_1.props.items) === null || _a === void 0 ? void 0 : _a.find(function (item) {
|
|
417
428
|
// Match by the text property if the value doesn't exist
|
|
418
429
|
if (typeof (item.value) === undefined) {
|
|
419
|
-
return item.text ==
|
|
430
|
+
return item.text == currentItem.text;
|
|
420
431
|
}
|
|
421
432
|
// See if the value property matches
|
|
422
|
-
return item.value == value;
|
|
433
|
+
return item.value == currentItem.value;
|
|
423
434
|
});
|
|
424
435
|
// See if an item was found
|
|
425
436
|
if (item) {
|