This repository was archived by the owner on Jun 28, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -788,7 +788,7 @@ export const Dropdown = React.memo(
788788 } ;
789789
790790 const show = ( ) => {
791- setFocusedOptionIndex ( focusedOptionIndex !== - 1 ? focusedOptionIndex : props . autoOptionFocus ? findFirstFocusedOptionIndex ( ) : - 1 ) ;
791+ setFocusedOptionIndex ( focusedOptionIndex !== - 1 ? focusedOptionIndex : props . autoOptionFocus ? findFirstFocusedOptionIndex ( ) : props . editable ? - 1 : findSelectedOptionIndex ( ) ) ;
792792 setOverlayVisibleState ( true ) ;
793793 } ;
794794
Original file line number Diff line number Diff line change @@ -527,7 +527,7 @@ export const MultiSelect = React.memo(
527527
528528 const show = ( ) => {
529529 setOverlayVisibleState ( true ) ;
530- setFocusedOptionIndex ( focusedOptionIndex !== - 1 ? focusedOptionIndex : props . autoOptionFocus ? findFirstFocusedOptionIndex ( ) : - 1 ) ;
530+ setFocusedOptionIndex ( focusedOptionIndex !== - 1 ? focusedOptionIndex : props . autoOptionFocus ? findFirstFocusedOptionIndex ( ) : findSelectedOptionIndex ( ) ) ;
531531 DomHandler . focus ( inputRef . current ) ;
532532 } ;
533533
You can’t perform that action at this time.
0 commit comments