Local Pickup: don't allow negative values
This commit is contained in:
parent
4cb19a2c76
commit
3cbf0d7404
|
@ -148,6 +148,7 @@ const GeneralSettings = () => {
|
||||||
) }
|
) }
|
||||||
type="number"
|
type="number"
|
||||||
pattern="[0-9]+\.?[0-9]*"
|
pattern="[0-9]+\.?[0-9]*"
|
||||||
|
min={ 0 }
|
||||||
value={ settings.cost }
|
value={ settings.cost }
|
||||||
onChange={ setSettingField( 'cost' ) }
|
onChange={ setSettingField( 'cost' ) }
|
||||||
disabled={ false }
|
disabled={ false }
|
||||||
|
|
Loading…
Reference in New Issue