@thecb/components 9.2.4-beta.18 → 9.2.4-beta.19

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": "@thecb/components",
3
- "version": "9.2.4-beta.18",
3
+ "version": "9.2.4-beta.19",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -269,9 +269,8 @@ const Dropdown = ({
269
269
  setFilteredOptions(
270
270
  options.filter(
271
271
  option =>
272
- option?.value?.toLowerCase()?.indexOf(inputValue?.toLowerCase()) >=
273
- 0 ||
274
- option.text?.toLowerCase()?.indexOf(inputValue?.toLowerCase()) >= 0
272
+ option?.value?.toLowerCase()?.includes(inputValue?.toLowerCase()) ||
273
+ option.text?.toLowerCase()?.includes(inputValue?.toLowerCase())
275
274
  )
276
275
  );
277
276
  }, [inputValue]);