parent
68a8c29a8a
commit
f71cbf171a
1 changed files with 4 additions and 1 deletions
|
@ -32,7 +32,10 @@ export const DisplayOrder = () => {
|
|||
value={value}
|
||||
data-testid="displayOrder"
|
||||
min={0}
|
||||
onChange={onChange}
|
||||
onChange={(value) => {
|
||||
const num = Number(value);
|
||||
onChange(value === "" ? value : num < 0 ? 0 : num);
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
|
|
Loading…
Reference in a new issue