Skip to content

Commit 5bece54

Browse files
authored
fix: add dataSet to the dependencies so that the initialValue works (#108)
1 parent 4618ad6 commit 5bece54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export const AutocompleteDropdown = memo(
8282
if (dataSetItem) {
8383
setSelectedItem(dataSetItem)
8484
}
85-
}, [])
85+
}, [dataSet])
8686

8787
/** expose controller methods */
8888
useEffect(() => {

0 commit comments

Comments
 (0)