From 331d6d57b2f4fe6043312ea86711336aae07b872 Mon Sep 17 00:00:00 2001 From: Junyi Date: Mon, 19 Jun 2023 17:58:38 +0700 Subject: [PATCH] fix(client): remove incorrect onchange in json component (#2079) --- packages/core/client/src/schema-component/antd/input/Json.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/core/client/src/schema-component/antd/input/Json.tsx b/packages/core/client/src/schema-component/antd/input/Json.tsx index ad10b1d2c4..64d283332f 100644 --- a/packages/core/client/src/schema-component/antd/input/Json.tsx +++ b/packages/core/client/src/schema-component/antd/input/Json.tsx @@ -40,7 +40,6 @@ export const Json = React.forwardRef( JSON.parse(ev.target.value); } field.setFeedback({}); - onChange?.(v); } catch (err) { field.setFeedback({ type: 'error', @@ -55,7 +54,6 @@ export const Json = React.forwardRef( field.setFeedback({}); onChange?.(v); } catch (err) { - onChange?.(ev); field.setFeedback({ type: 'error', code: 'JSONSyntaxError',