diff options
Diffstat (limited to 'app/dom.js')
| -rw-r--r-- | app/dom.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -88,7 +88,7 @@ export class Dom { * Create an `<input>` * @param { string} type * @param { (e: Event) => void } onChange - * @param { string} value + * @param { string|number} value * @param { string} placeholder * @param {DomOptions} [o] * @returns {HTMLInputElement} @@ -102,7 +102,7 @@ export class Dom { input.type = type; input.placeholder = placeholder; - input.value = value; + input.value = value.toString(); if (onChange) { input.addEventListener("change", onChange); } |
