Skip to content

Commit

Permalink
fix: fixes issue causing combobox to grab focus on render (#1575)
Browse files Browse the repository at this point in the history
  • Loading branch information
FredrikMWold authored Mar 1, 2024
1 parent dc9da74 commit 59366d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hooks/useMultipleSelection/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ function useMultipleSelection(userProps = {}) {
} else if (selectedItemRefs.current[activeIndex]) {
selectedItemRefs.current[activeIndex].focus()
}
}, [activeIndex, isInitialMount])
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [activeIndex])
useControlPropsValidator({
props,
state,
Expand Down

0 comments on commit 59366d9

Please sign in to comment.