Skip to content

Commit

Permalink
fix: allow decimal inputs for number fields
Browse files Browse the repository at this point in the history
fixes #237
  • Loading branch information
fetwar committed Apr 20, 2024
1 parent 9ac9049 commit b70e99a
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 b70e99a

Please sign in to comment.