fix: Animation of InputSelect is janky (#4061)

This commit is contained in:
Tom Moor
2022-09-06 10:17:52 +02:00
committed by GitHub
parent 2d39a6f0ab
commit e4023d87e2
3 changed files with 14 additions and 3 deletions

View File

@@ -10,7 +10,7 @@ const useMenuHeight = (
const isMobile = useMobile();
const { height: windowHeight } = useWindowSize();
React.useLayoutEffect(() => {
React.useEffect(() => {
const padding = 8;
if (visible && !isMobile) {