Fix: number input can display 0 (#23084)
This commit is contained in:
parent
a70d59d4a6
commit
84aa38586f
2 changed files with 4 additions and 4 deletions
|
|
@ -198,7 +198,7 @@ const FormInputItem: FC<Props> = ({
|
|||
<Input
|
||||
className='h-8 grow'
|
||||
type='number'
|
||||
value={varInput?.value || ''}
|
||||
value={Number.isNaN(varInput?.value) ? '' : varInput?.value}
|
||||
onChange={e => handleValueChange(e.target.value)}
|
||||
placeholder={placeholder?.[language] || placeholder?.en_US}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue