From be02a03b1018d99819c70a1aa4a65c5abefe98a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E5=9D=A4?= Date: Fri, 23 Feb 2024 10:27:54 +0800 Subject: [PATCH] Update Switch.tsx remove `onChange` in `useMergedState` --- components/switch/Switch.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/components/switch/Switch.tsx b/components/switch/Switch.tsx index d88f844b..12547303 100644 --- a/components/switch/Switch.tsx +++ b/components/switch/Switch.tsx @@ -51,7 +51,6 @@ const AntmSwitch = ({ const [innerChecked, setInnerChecked] = useMergedState(false, { value: checked, defaultValue: defaultChecked, - onChange: onChange, }) const [innerLoading, setInnerLoading] = useMergedState(false, { value: loading,