File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ defmodule Backpex.Fields.Number do
48
48
< Layout . input_label text = { @ field_options [ :label ] } />
49
49
</: label >
50
50
< BackpexForm . input
51
- type = "text "
51
+ type = "number "
52
52
field = { @ form [ @ name ] }
53
53
placeholder = { @ field_options [ :placeholder ] }
54
54
translate_error_fun = { Backpex.Field . translate_error_fun ( @ field_options , assigns ) }
@@ -76,7 +76,7 @@ defmodule Backpex.Fields.Number do
76
76
< . form for = { @ form } class = "relative " phx-change = "update-field " phx-submit = "update-field " phx-target = { @ myself } >
77
77
< BackpexForm . input
78
78
id = { "index-form-input-#{ @ name } -#{ LiveResource . primary_value ( @ item , @ live_resource ) } " }
79
- type = "text "
79
+ type = "number "
80
80
field = { @ form [ :value ] }
81
81
placeholder = { @ field_options [ :placeholder ] }
82
82
input_class = { [ "input input-sm" , @ valid && "not-hover:input-ghost" , ! @ valid && "input-error bg-error/10" ] }
You can’t perform that action at this time.
0 commit comments