mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-14 11:05:41 +00:00
Fix for clearable form fields (#6518)
This commit is contained in:
@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user