Fix bug with number inputs allow value less than the min when minimum is 0

This commit is contained in:
Oliver-Akins 2025-01-17 19:58:47 -07:00
parent 67602779ed
commit 5b903f7e74

View file

@ -12,9 +12,9 @@ export function numberInput(input, data) {
};
let attrs = ``;
if (input.min) { attrs += ` min="${input.min}"` };
if (input.max) { attrs += ` max="${input.max}"` };
if (input.step) { attrs += `step="${input.step}"` };
if (input.min != undefined) { attrs += ` min="${input.min}"` };
if (input.max != undefined) { attrs += ` max="${input.max}"` };
if (input.step != undefined) { attrs += `step="${input.step}"` };
return `<div data-input-type="integer">
<label