[FIX] web: fix blur problem in FieldMany2One widget when clicking on autocomplete option inside a wizard
This commit is contained in:
@@ -3568,10 +3568,10 @@ instance.web.form.FieldMany2One = instance.web.form.AbstractField.extend(instanc
|
||||
focusout: anyoneLoosesFocus,
|
||||
focus: function () { self.trigger('focused'); },
|
||||
autocompleteopen: function () { ignore_blur = true; },
|
||||
autocompleteclose: function () { ignore_blur = false; },
|
||||
autocompleteclose: function () { setTimeout(function() {ignore_blur = false;},0); },
|
||||
blur: function () {
|
||||
// autocomplete open
|
||||
if (ignore_blur) { return; }
|
||||
if (ignore_blur) { $(this).focus(); return; }
|
||||
if (_(self.getChildren()).any(function (child) {
|
||||
return child instanceof instance.web.form.AbstractFormPopup;
|
||||
})) { return; }
|
||||
|
||||
Reference in New Issue
Block a user