diff --git a/src/components/molecules/Select/components/Options/Options.tsx b/src/components/molecules/Select/components/Options/Options.tsx index b7eb051b..2f0b85cd 100644 --- a/src/components/molecules/Select/components/Options/Options.tsx +++ b/src/components/molecules/Select/components/Options/Options.tsx @@ -63,7 +63,7 @@ const Options: React.FC & OptionsComposition = ({ setMaxHeight(height <= rect.height ? height : rect.height - +(scrollMode === 'scroll')); } - }, [ref.current, offsetBottom]); + }, [ref.current, offsetBottom, scrollMode]); React.useEffect(() => { if (ref.current && !scrollMode && options?.length) {