diff --git a/module/handlebarHelpers/inputs/numberInput.mjs b/module/handlebarHelpers/inputs/numberInput.mjs index e549b36..8407912 100644 --- a/module/handlebarHelpers/inputs/numberInput.mjs +++ b/module/handlebarHelpers/inputs/numberInput.mjs @@ -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 `