From 3546ec60256582959bb9cea14df78dbf39e8a9ef Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 14 Jul 2026 11:46:48 +0800 Subject: [PATCH] fix: satisfy react doctor state updater rule --- src/components/TagSelect/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/TagSelect/index.tsx b/src/components/TagSelect/index.tsx index 260e410e..a5398159 100644 --- a/src/components/TagSelect/index.tsx +++ b/src/components/TagSelect/index.tsx @@ -71,7 +71,7 @@ const TagSelect: FC & { const value = props.value ?? innerValue; const setValue = (nextValue: (string | number)[]) => { if (props.value === undefined) { - setInnerValue(nextValue); + setInnerValue(() => nextValue); } props.onChange?.(nextValue); };