We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58fb9d0 commit 74eede3Copy full SHA for 74eede3
src/components/Form/SingleSelect.tsx
@@ -124,6 +124,10 @@ function SingleSelect({
124
onChangeSelect?.(option)
125
}
126
127
+ useEffect(() => {
128
+ setOptions(optionsList)
129
+ }, [optionsList])
130
+
131
useEffect(() => {
132
const handleClickOutside = (e: globalThis.MouseEvent) => {
133
if (selectRef.current && !selectRef.current.contains(e.target as Node)) {
0 commit comments