mirror of
https://github.com/strapi/strapi.git
synced 2025-12-28 15:44:59 +00:00
GenericInput: Allow number inputs to be cleared
This commit is contained in:
parent
960520c086
commit
19bd74f292
@ -216,12 +216,12 @@ const GenericInput = ({
|
||||
hint={hint}
|
||||
name={name}
|
||||
onValueChange={value => {
|
||||
onChange({ target: { name, value, type } });
|
||||
onChange({ target: { name, value: value ?? null, type } });
|
||||
}}
|
||||
placeholder={formattedPlaceholder}
|
||||
required={required}
|
||||
step={step}
|
||||
value={value ?? undefined}
|
||||
value={value ?? null}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user