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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-bs",
3
- "version": "6.6.85",
3
+ "version": "6.6.86",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -455,15 +455,7 @@ class _Dropdown extends Base<IDropdownProps> implements IDropdown {
455
455
  }
456
456
 
457
457
  // Find the item
458
- let item = this.props.items?.find((item) => {
459
- // Match by the text property if the value doesn't exist
460
- if (typeof (item.value) === undefined) { return item.text == currentItem.text; }
461
-
462
- // See if the value property matches
463
- return item.value == currentItem.value;
464
- });
465
-
466
- // See if an item was found
458
+ let item = this.props.items?.find((item) => { return item.value == currentValue || item.text == currentValue; });
467
459
  if (item) {
468
460
  // Add the text property
469
461
  values.push(item.text);