changeset 54325451d8ed in sao:default
details: https://hg.tryton.org/sao?cmd=changeset;node=54325451d8ed
description:
        Remove input val when clearing Binary widget

        On chromium the input does not trigger a change event if the value is 
the same
        (the same file is selected twice).
        So we force the null value when the widget is cleared.

        issue8513
        review265681003
diffstat:

 src/view/form.js |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r f9d6549b6687 -r 54325451d8ed src/view/form.js
--- a/src/view/form.js  Thu Jul 25 10:25:34 2019 +0200
+++ b/src/view/form.js  Thu Jul 25 10:29:09 2019 +0200
@@ -3616,6 +3616,7 @@
             }.bind(this));
         },
         clear: function() {
+            this.input_select.val(null);
             var filename_field = this.filename_field;
             if (filename_field) {
                 filename_field.set_client(this.record, null);

Reply via email to