Commit 14845e36 authored by Tomáš Peterka's avatar Tomáš Peterka Committed by Tomáš Peterka

[renderjs_ui] FLoatField with unspecified precision uses step="any"

/reviewed-on nexedi/erp5!432
parent 8072877f
...@@ -19,9 +19,8 @@ ...@@ -19,9 +19,8 @@
value: window.parseFloat(field_json.default), value: window.parseFloat(field_json.default),
text_content: '', text_content: '',
// `step` is used for browser-level validation thus a mandatory value // `step` is used for browser-level validation thus a mandatory value
// HTML5 default is 1.0 which is not feasible most of the time thus we // if unspecified we can use "any" value
// default to over-sufficiently small value step: "any",
step: 0.00000001,
// `append` is a string to display next to the field ("%", "EUR"...) // `append` is a string to display next to the field ("%", "EUR"...)
append: '' append: ''
}; };
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>962.12588.2416.8721</string> </value> <value> <string>962.14347.57208.52667</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1505921992.31</float> <float>1507102119.32</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment