@thecb/components 9.2.2-beta.3 → 9.2.2-beta.4

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.2-beta.3",
3
+ "version": "9.2.2-beta.4",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -265,8 +265,10 @@ const Dropdown = ({
265
265
  setTimer(setTimeout(() => setInputValue(""), 20000));
266
266
  }
267
267
  setFilteredOptions(
268
- options.filter(option =>
269
- option.value.toLowerCase().match(inputValue.toLowerCase())
268
+ options.filter(
269
+ option =>
270
+ option.value.toLowerCase().match(inputValue.toLowerCase()) ||
271
+ option.text.toLowerCase().match(inputValue.toLowerCase())
270
272
  )
271
273
  );
272
274
  }, [inputValue]);
@@ -299,7 +301,7 @@ const Dropdown = ({
299
301
  <Box
300
302
  padding="0"
301
303
  background={isOpen ? themeValues.hoverColor : WHITE}
302
- extraStyles={`position: relative; margin-bottom: 1rem;`}
304
+ extraStyles={`position: relative;`}
303
305
  minWidth="100%"
304
306
  onClick={() => {
305
307
  if (!isOpen) {