Add inputmode attribute to reading progress modal input

This commit is contained in:
Evan Fiordeliso 2026-06-10 09:49:10 -04:00
parent 42d42e92c2
commit b5580545e1
1 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,7 @@
);
const min = $derived(0);
const max = $derived(mode === "page-number" ? pageCount : 100);
const inputmode = $derived(mode === "page-number" ? "numeric" : "decimal")
function onsubmit(ev: SubmitEvent) {
ev.preventDefault();
@ -47,6 +48,7 @@
<input
id="value"
type="number"
{inputmode}
{placeholder}
{min}
{max}