From 3f1b1117b5ee06a3f5b6608a1c969f2a39fae6d3 Mon Sep 17 00:00:00 2001 From: wibetter <365533093@qq.com> Date: Thu, 25 May 2023 20:57:47 +0800 Subject: [PATCH] =?UTF-8?q?fix(amis-editor):=20=E6=8E=A5=E5=8F=A3=E9=80=82?= =?UTF-8?q?=E9=85=8D=E5=99=A8=E8=BE=93=E5=85=A5=E6=97=B6=E4=B8=8D=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=AF=B9=E5=85=B6=E8=BF=9B=E8=A1=8C=E6=8A=98=E5=8F=A0?= =?UTF-8?q?=E9=9A=90=E8=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/amis-editor/src/renderer/APIAdaptorControl.tsx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/amis-editor/src/renderer/APIAdaptorControl.tsx b/packages/amis-editor/src/renderer/APIAdaptorControl.tsx index 09be6e6c7..3133eac83 100644 --- a/packages/amis-editor/src/renderer/APIAdaptorControl.tsx +++ b/packages/amis-editor/src/renderer/APIAdaptorControl.tsx @@ -64,14 +64,6 @@ export default class APIAdaptorControl extends React.Component< }; } - componentDidUpdate(prevProps: Readonly): void { - if (this.props.value !== prevProps.value) { - this.setState({ - switch: !!this.props.value - }); - } - } - @autobind onChange(value: any = '') { this.props.onChange?.(value);