Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit dc6ba7c

Browse files
committed
Recognise integer number type as numeric
1 parent 751eb2f commit dc6ba7c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

‎src/Json/Form.elm

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ viewNode model schema isRequired isDisabled path =
5353
TextField ->
5454
TextField.view model schema False isRequired isDisabled path
5555

56+
JsonEditor ->
57+
TextField.view model schema True isRequired isDisabled path
58+
5659
NumberField ->
5760
TextField.viewNumeric model schema isRequired isDisabled path
5861

@@ -68,9 +71,6 @@ viewNode model schema isRequired isDisabled path =
6871
Array ->
6972
viewArray model schema isRequired isDisabled path
7073

71-
JsonEditor ->
72-
TextField.view model schema True isRequired isDisabled path
73-
7474

7575
editingMode : Model -> Schema -> EditingMode
7676
editingMode model schema =
@@ -80,6 +80,9 @@ editingMode model schema =
8080
SingleType NumberType ->
8181
NumberField
8282

83+
SingleType IntegerType ->
84+
NumberField
85+
8386
SingleType StringType ->
8487
TextField
8588

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /