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
This commit is contained in:
Cédric Krier committed 2019-07-25 10:29:09 +02:00
1 parent 8a0ab47a64
commit 1603da8d08
1 file changed
+1
+1
View File
@@ -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);