Skip to content

Commit 59366d9

Browse files
authored
fix: fixes issue causing combobox to grab focus on render (#1575)
1 parent dc9da74 commit 59366d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hooks/useMultipleSelection/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ function useMultipleSelection(userProps = {}) {
9393
} else if (selectedItemRefs.current[activeIndex]) {
9494
selectedItemRefs.current[activeIndex].focus()
9595
}
96-
}, [activeIndex, isInitialMount])
96+
// eslint-disable-next-line react-hooks/exhaustive-deps
97+
}, [activeIndex])
9798
useControlPropsValidator({
9899
props,
99100
state,

0 commit comments

Comments
 (0)