Skip to content

Commit cc75a43

Browse files
authored
feat(select): force scroll bar visible when list is changed (#916)
1 parent fe1a13a commit cc75a43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OptionList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ const OptionList: React.ForwardRefRenderFunction<RefOptionListProps, {}> = (_, r
145145
}
146146

147147
return () => clearTimeout(timeoutId);
148-
}, [open, searchValue]);
148+
}, [open, searchValue, flattenOptions.length]);
149149

150150
// ========================== Values ==========================
151151
const onSelectValue = (value: RawValueType) => {

0 commit comments

Comments
 (0)