changeset 919bff3695a1 in sao:5.2
details: https://hg.tryton.org/sao?cmd=changeset;node=919bff3695a1
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 937aa35767d2 -r 919bff3695a1 src/view/form.js
--- a/src/view/form.js Mon Dec 02 20:43:57 2019 +0100
+++ b/src/view/form.js Sat Nov 30 22:39:09 2019 +0100
@@ -1551,11 +1551,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 = '';