Update eslint (non-major) (#39797)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: diondiondion <mail@diondiondion.com>
This commit is contained in:
1 parent
4ebd3e5491
commit
54b1dd7ae3
14 files changed
+819
-278
No files matched your search
@@ -317,6 +317,9 @@ const ComboboxWithRef = <Item extends ComboboxItem, GroupKey extends string>(
|
||||
// Reset scroll & highlight when menu items change
|
||||
useEffect(() => {
|
||||
if (flatItems.length) {
|
||||
// This only runs when the items change so should be safe from
|
||||
// cascade renders.
|
||||
// eslint-disable-next-line react-hooks/set-state-in-effect
|
||||
resetHighlight();
|
||||
}
|
||||
}, [flatItems, resetHighlight]);
|
||||
|
||||
Reference in new issue
Block a user