From ccc0b53bb5805f45904eafb5335c4fd9fe3ee39a Mon Sep 17 00:00:00 2001 From: Fetwar Date: Tue, 16 Apr 2024 14:09:03 +1000 Subject: [PATCH] Fix: 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 !== "") {