changeset 11b6640012e2 in sao:5.4
details: https://hg.tryton.org/sao?cmd=changeset;node=11b6640012e2
description:
Set invalid number value from the client
The value is rounded in apply_factor is needed or set to default value
if it is
not a number.
This prevents the user from losing its invalid input.
issue8841
review250311002
(grafted from 2aef1292a4f87299d9512b8cd9879b7dafe4914c)
diffstat:
src/view/form.js | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diffs (16 lines):
diff -r 80b72370afb5 -r 11b6640012e2 src/view/form.js
--- a/src/view/form.js Mon Dec 02 20:42:52 2019 +0100
+++ b/src/view/form.js Sat Nov 30 22:39:09 2019 +0100
@@ -1614,11 +1614,7 @@
this.record, this.get_value(), undefined, this.factor);
},
get_value: function() {
- if (this.input[0].checkValidity()) {
- return this.input.val();
- } else {
- return NaN;
- }
+ return this.input.val();
},
get_client_value: function() {
var value = '';