fix(client): show original field input component after cleared variable (#5028)

This commit is contained in:
Junyi 2024-08-09 14:12:49 +08:00 committed by GitHub
parent 4590c754ce
commit acae33a89d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -385,7 +385,7 @@ export function Input(props: VariableInputProps) {
// eslint-disable-next-line react/no-unknown-property
unselectable="on"
onClick={() => {
setIsFieldValue(false);
setIsFieldValue(Boolean(children));
onChange(null);
}}
>