Skip to content

Commit

Permalink
Small fix on <Select />
Browse files Browse the repository at this point in the history
  • Loading branch information
devdfan committed Aug 12, 2021
1 parent 2b9c2cd commit d5c5a62
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const Options: React.FC<OptionsProps> & 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) {
Expand Down

0 comments on commit d5c5a62

Please sign in to comment.