Commit a65a95fb authored by Cedric Snauwaert's avatar Cedric Snauwaert
Browse files

[FIX] web: fix blur problem in FieldMany2One widget when clicking on...

[FIX] web: fix blur problem in FieldMany2One widget when clicking on autocomplete option inside a wizard
parent 15a3a2a6
......@@ -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; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment