Fix bug with number inputs allow value less than the min when minimum is 0
This commit is contained in:
parent
67602779ed
commit
5b903f7e74
1 changed files with 3 additions and 3 deletions
|
|
@ -12,9 +12,9 @@ export function numberInput(input, data) {
|
||||||
};
|
};
|
||||||
|
|
||||||
let attrs = ``;
|
let attrs = ``;
|
||||||
if (input.min) { attrs += ` min="${input.min}"` };
|
if (input.min != undefined) { attrs += ` min="${input.min}"` };
|
||||||
if (input.max) { attrs += ` max="${input.max}"` };
|
if (input.max != undefined) { attrs += ` max="${input.max}"` };
|
||||||
if (input.step) { attrs += `step="${input.step}"` };
|
if (input.step != undefined) { attrs += `step="${input.step}"` };
|
||||||
|
|
||||||
return `<div data-input-type="integer">
|
return `<div data-input-type="integer">
|
||||||
<label
|
<label
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue