@thecb/components 9.2.0 → 9.2.2-beta.0

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.0",
3
+ "version": "9.2.2-beta.0",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
package/src/.DS_Store ADDED
Binary file
Binary file
Binary file
@@ -265,10 +265,8 @@ const Dropdown = ({
265
265
  setTimer(setTimeout(() => setInputValue(""), 3000));
266
266
  }
267
267
  setFilteredOptions(
268
- options.filter(
269
- option =>
270
- option.value.toLowerCase().startsWith(inputValue.toLowerCase()) ||
271
- option.text.toLowerCase().startsWith(inputValue.toLowerCase())
268
+ options.filter(option =>
269
+ option.value.toLowerCase().match(inputValue.toLowerCase())
272
270
  )
273
271
  );
274
272
  }, [inputValue]);