File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
templates/react/components/foo Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -66,10 +66,10 @@ export default class {
66
66
67
67
switch ( field . range ) {
68
68
case "http://www.w3.org/2001/XMLSchema#integer" :
69
- return { type : "number" } ;
69
+ return { type : "number" , number : true } ;
70
70
71
71
case "http://www.w3.org/2001/XMLSchema#decimal" :
72
- return { type : "number" , step : "0.1" } ;
72
+ return { type : "number" , step : "0.1" , number : true } ;
73
73
74
74
case "http://www.w3.org/2001/XMLSchema#boolean" :
75
75
return { type : "checkbox" } ;
Original file line number Diff line number Diff line change @@ -53,7 +53,8 @@ class Form extends Component {
53
53
step = "{{{step}}}" { { / i f } }
54
54
placeholder = "{{{description}}}" { { #if required} }
55
55
required = { true } { { / i f } } { { # i f r e f e r e n c e } } { { # u n l e s s m a x C a r d i n a l i t y } }
56
- normalize = { v => ( v === '' ? [ ] : v . split ( ',' ) ) } { { / unless } } { { / i f } }
56
+ normalize = { v => ( v === '' ? [ ] : v . split ( ',' ) ) } { { / unless } } { { / i f } } { { # i f n u m b e r } }
57
+ normalize = { v => parseFloat ( v ) } { { / i f } }
57
58
/ >
58
59
{ { / e a c h } }
59
60
You can’t perform that action at this time.
0 commit comments