changeset 2aef1292a4f8 in sao:default
details: https://hg.tryton.org/sao?cmd=changeset;node=2aef1292a4f8
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
diffstat:
src/view/form.js | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diffs (16 lines):
diff -r ac48f5f8ee3a -r 2aef1292a4f8 src/view/form.js
--- a/src/view/form.js Tue Nov 26 22:34:49 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 = '';