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 {
6666
6767 switch ( field . range ) {
6868 case "http://www.w3.org/2001/XMLSchema#integer" :
69- return { type : "number" } ;
69+ return { type : "number" , number : true } ;
7070
7171 case "http://www.w3.org/2001/XMLSchema#decimal" :
72- return { type : "number" , step : "0.1" } ;
72+ return { type : "number" , step : "0.1" , number : true } ;
7373
7474 case "http://www.w3.org/2001/XMLSchema#boolean" :
7575 return { type : "checkbox" } ;
Original file line number Diff line number Diff line change @@ -53,7 +53,8 @@ class Form extends Component {
5353 step = "{{{step}}}" { { / i f } }
5454 placeholder = "{{{description}}}" { { #if required} }
5555 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 } }
5758 / >
5859{ { / e a c h } }
5960
You can’t perform that action at this time.
0 commit comments