diff options
| author | Petri Hienonen <petri.hienonen@gmail.com> | 2025-11-14 13:23:58 +0200 |
|---|---|---|
| committer | Petri Hienonen <petri.hienonen@gmail.com> | 2025-11-14 13:23:58 +0200 |
| commit | a92ad2b817b2c28b26e869897e03c14d30d0f991 (patch) | |
| tree | 702b4b63e2dc7cc544949cd76b444445e6c12ae5 /app/dom.js | |
| parent | d41ac3c094f733a8038885de3400ed7558b2b878 (diff) | |
| download | housing-a92ad2b817b2c28b26e869897e03c14d30d0f991.tar.zst | |
Add histogram
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); } |
