Skip to content

Commit

Permalink
Allow decimal inputs for number fields
Browse files Browse the repository at this point in the history
  • Loading branch information
fetwar committed Apr 16, 2024
1 parent 9ac9049 commit 526bcc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/FormModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 !== "") {
Expand Down

0 comments on commit 526bcc8

Please sign in to comment.