haya-select 1.0.31 → 1.0.32

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": "haya-select",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -10,7 +10,7 @@
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
12
  "classnames": "^2.3.1",
13
- "debounce": "^1.2.1",
13
+ "debounce": "^2.1.0",
14
14
  "diggerize": "^1.0.4",
15
15
  "fetching-object": "^1.0.1",
16
16
  "set-state-compare": "^1.0.43"
@@ -311,7 +311,7 @@ export default memo(shapeComponent(class HayaSelect extends ShapeComponent {
311
311
 
312
312
  loadOptionsFromArray(options, searchValue) {
313
313
  const lowerSearchValue = searchValue?.toLowerCase()
314
- const loadedOptions = options.filter(({text}) => !lowerSearchValue || text.toLowerCase().includes(lowerSearchValue))
314
+ const loadedOptions = options.filter(({text}) => !lowerSearchValue || text?.toLowerCase()?.includes(lowerSearchValue))
315
315
 
316
316
  this.setState({loadedOptions})
317
317
  }