Skip to content

Commit

Permalink
fix: fixes issue causing combobox to grab focus on render
Browse files Browse the repository at this point in the history
  • Loading branch information
FredrikMWold committed Feb 29, 2024
1 parent dc9da74 commit e5a949c
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 e5a949c

Please sign in to comment.