From 1603da8d08607342bc17f1c76d69f715e84f32da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 25 Jul 2019 10:29:09 +0200 Subject: [PATCH] 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 --- src/view/form.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/view/form.js b/src/view/form.js index 073b96ead9..a8951c4385 100644 --- a/src/view/form.js +++ b/src/view/form.js @@ -3616,6 +3616,7 @@ function eval_pyson(value){ }.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);