From 54049855f7a74193a21601cb36055478fe4a7cb2 Mon Sep 17 00:00:00 2001 From: Jaden Gregory Date: Thu, 21 Sep 2023 15:50:17 +1000 Subject: [PATCH] [@mantine/core] Select: Fix search text not updating --- src/mantine-core/src/components/Select/Select.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mantine-core/src/components/Select/Select.tsx b/src/mantine-core/src/components/Select/Select.tsx index 4adf9b6621b..a1128b96959 100644 --- a/src/mantine-core/src/components/Select/Select.tsx +++ b/src/mantine-core/src/components/Select/Select.tsx @@ -171,7 +171,7 @@ export const Select = factory((_props, ref) => { if (typeof value === 'string' && optionsLockup[value]) { setSearch(optionsLockup[value].label); } - }, [value]); + }, [value, optionsLockup]); return ( <>