mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 11:56:29 +00:00
fix(client): remove incorrect onchange in json component (#2079)
This commit is contained in:
parent
a3805e3b02
commit
331d6d57b2
@ -40,7 +40,6 @@ export const Json = React.forwardRef<typeof Input.TextArea, JSONTextAreaProps>(
|
|||||||
JSON.parse(ev.target.value);
|
JSON.parse(ev.target.value);
|
||||||
}
|
}
|
||||||
field.setFeedback({});
|
field.setFeedback({});
|
||||||
onChange?.(v);
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
field.setFeedback({
|
field.setFeedback({
|
||||||
type: 'error',
|
type: 'error',
|
||||||
@ -55,7 +54,6 @@ export const Json = React.forwardRef<typeof Input.TextArea, JSONTextAreaProps>(
|
|||||||
field.setFeedback({});
|
field.setFeedback({});
|
||||||
onChange?.(v);
|
onChange?.(v);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
onChange?.(ev);
|
|
||||||
field.setFeedback({
|
field.setFeedback({
|
||||||
type: 'error',
|
type: 'error',
|
||||||
code: 'JSONSyntaxError',
|
code: 'JSONSyntaxError',
|
||||||
|
Loading…
Reference in New Issue
Block a user