Skip to content

Commit

Permalink
[@mantine/core] Select: Fix search value not updating when data array…
Browse files Browse the repository at this point in the history
… changes (#4822)

Co-authored-by: Jaden Gregory <jaden.gregory@imcontrol.com.au>
  • Loading branch information
DoubleJ-G and Jaden Gregory committed Sep 21, 2023
1 parent 41d11ee commit 4a15a71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mantine-core/src/components/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export const Select = factory<SelectFactory>((_props, ref) => {
if (typeof value === 'string' && optionsLockup[value]) {
setSearch(optionsLockup[value].label);
}
}, [value]);
}, [value, optionsLockup]);

return (
<>
Expand Down

0 comments on commit 4a15a71

Please sign in to comment.