Fix for clearable form fields (#6518)
This commit is contained in:
parent
ed95cf2a8f
commit
6e932f85cf
|
|
@ -192,7 +192,7 @@ export function ApiFormField({
|
|||
radius="sm"
|
||||
onChange={(event) => onChange(event.currentTarget.value)}
|
||||
rightSection={
|
||||
definition.value && !definition.required ? (
|
||||
value && !definition.required ? (
|
||||
<IconX size="1rem" color="red" onClick={() => onChange('')} />
|
||||
) : null
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue