mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix for clearable form fields (#6518)
This commit is contained in:
parent
ed95cf2a8f
commit
6e932f85cf
@ -192,7 +192,7 @@ export function ApiFormField({
|
|||||||
radius="sm"
|
radius="sm"
|
||||||
onChange={(event) => onChange(event.currentTarget.value)}
|
onChange={(event) => onChange(event.currentTarget.value)}
|
||||||
rightSection={
|
rightSection={
|
||||||
definition.value && !definition.required ? (
|
value && !definition.required ? (
|
||||||
<IconX size="1rem" color="red" onClick={() => onChange('')} />
|
<IconX size="1rem" color="red" onClick={() => onChange('')} />
|
||||||
) : null
|
) : null
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user