replace type text with number

This commit is contained in:
Gani Georgiev
2026-06-08 10:27:28 +03:00
parent 72df31e22d
commit b66a4e32cc
7 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ export function settings(props) {
{ className: "field" },
t.label({ htmlFor: uniqueId + ".min" }, "Min"),
t.input({
type: "text",
type: "number",
id: uniqueId + ".min",
name: () => `fields.${props.fieldIndex}.min`,
value: () => typeof props.field.min == "number" ? props.field.min : "",
@@ -38,7 +38,7 @@ export function settings(props) {
{ className: "field" },
t.label({ htmlFor: uniqueId + ".max" }, "Max"),
t.input({
type: "text",
type: "number",
id: uniqueId + ".max",
min: () => props.field.min,
name: () => `fields.${props.fieldIndex}.max`,