[IMP] web_advanced_search: Don't block modal filter menu

pull/1682/head
Alexandre D. Díaz 2020-08-03 20:21:55 +02:00 committed by Radovan Skolnik
parent 1a5dc88c3c
commit b942f3a506
1 changed files with 9 additions and 5 deletions

View File

@ -84,8 +84,12 @@ odoo.define("web_advanced_search", function(require) {
*/
start: function() {
this._super.apply(this, arguments);
this.$el.on('hide.bs.dropdown', function() {
return !($('.o_technical_modal.show').length || $('body.oe_wait').length);
this.$el.on("hide.bs.dropdown", function() {
var $modal = $(".o_technical_modal.show");
return !(
($modal.length && !$modal.has($(this)).length) ||
$("body.oe_wait").length
);
});
},