Commit ba67b660 authored by Tomáš Peterka's avatar Tomáš Peterka Committed by Eteri

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

/reviewed-on nexedi/erp5!432
parent 82d39c25
......@@ -19,9 +19,8 @@
value: window.parseFloat(field_json.default),
text_content: '',
// `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
// default to over-sufficiently small value
step: 0.00000001,
// if unspecified we can use "any" value
step: "any",
// `append` is a string to display next to the field ("%", "EUR"...)
append: ''
};
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>962.12588.2416.8721</string> </value>
<value> <string>962.14347.57208.52667</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1505921992.31</float>
<float>1507102119.32</float>
<string>UTC</string>
</tuple>
</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