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 +1 -1
- package/src/select/index.jsx +2 -2
package/package.json
CHANGED
package/src/select/index.jsx
CHANGED
|
@@ -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
|
|
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
|
|
573
|
+
const toggleOption = toggleOptions?.find((toggleOptionI) => toggleOptionI.value == toggleValue)
|
|
574
574
|
|
|
575
575
|
return (
|
|
576
576
|
<div
|