haya-select 1.0.35 → 1.0.37

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.35",
3
+ "version": "1.0.37",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -406,7 +406,7 @@ export default memo(shapeComponent(class HayaSelect extends ShapeComponent {
406
406
  scrollLeft: document.documentElement.scrollLeft,
407
407
  scrollTop: document.documentElement.scrollTop
408
408
  },
409
- () => searchTextInputRef.current.focus()
409
+ () => searchTextInputRef.current?.focus()
410
410
  )
411
411
  }
412
412
 
@@ -570,7 +570,7 @@ export default memo(shapeComponent(class HayaSelect extends ShapeComponent {
570
570
  const toggled = this.getToggled()
571
571
  const icon = this.iconForOption(currentValue)
572
572
  const toggleValue = toggled[currentValue.value]
573
- const toggleOption = toggleOptions.find((toggleOptionI) => toggleOptionI.value == toggleValue)
573
+ const toggleOption = toggleOptions?.find((toggleOptionI) => toggleOptionI.value == toggleValue)
574
574
 
575
575
  return (
576
576
  <div