Skip to content

Commit

Permalink
fix: scroll to date picker when open
Browse files Browse the repository at this point in the history
exhaustive deps issue introduced when useScrollTo was brought over from ui.
  • Loading branch information
buckhalt committed Mar 1, 2024
1 parent 3d7f151 commit 725f57e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ui/hooks/useScrollTo.js
Expand Up @@ -63,7 +63,8 @@ const useScrollTo = (
clearTimeout(timer.current);
timer.current = scrollFocus(ref.current, delay);
}
}, [watch, condition, ref, delay]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, watch);
};

export default useScrollTo;

0 comments on commit 725f57e

Please sign in to comment.