From 526bcc8385e22b60bac1cb0121445564dad8de8f Mon Sep 17 00:00:00 2001 From: Fetwar Date: Tue, 16 Apr 2024 14:09:03 +1000 Subject: [PATCH] Allow decimal inputs for number fields --- src/FormModal.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/FormModal.ts b/src/FormModal.ts index e17c421a..6c5a421a 100644 --- a/src/FormModal.ts +++ b/src/FormModal.ts @@ -107,6 +107,7 @@ export class FormModal extends Modal { case "number": return fieldBase.addText((text) => { text.inputEl.type = "number"; + text.inputEl.step = "any"; subToErrors(text.inputEl); text.onChange((val) => { if (val !== "") {