mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[FIX] web_advanced_search: search more filters
TT44025
This commit is contained in:
20
web_advanced_search/static/src/js/owl/dropdown.esm.js
Normal file
20
web_advanced_search/static/src/js/owl/dropdown.esm.js
Normal file
@@ -0,0 +1,20 @@
|
||||
/** @odoo-module **/
|
||||
|
||||
import {Dropdown} from "@web/core/dropdown/dropdown";
|
||||
import {patch} from "web.utils";
|
||||
|
||||
patch(Dropdown.prototype, "web.Dropdown", {
|
||||
/**
|
||||
* Our many2one widget in the filter menus has a dropdown that propagates some
|
||||
* custom events through the bus to the search more pop-up. This is not replicable
|
||||
* in core but we can simply cut it here
|
||||
* @override
|
||||
*/
|
||||
onDropdownStateChanged(args) {
|
||||
const direct_siblings = args.emitter.el.parentElement === this.el.parentElement;
|
||||
if (!direct_siblings && args.emitter.myActiveEl !== this.myActiveEl) {
|
||||
return;
|
||||
}
|
||||
return this._super(...arguments);
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user