diff --git a/addons/web/static/src/search/search_panel/search_panel.js b/addons/web/static/src/search/search_panel/search_panel.js index fbf3f759bbf..72cb802be4e 100644 --- a/addons/web/static/src/search/search_panel/search_panel.js +++ b/addons/web/static/src/search/search_panel/search_panel.js @@ -2,7 +2,7 @@ import { useBus } from "@web/core/utils/hooks"; -const { Component, onMounted, onWillStart, useRef, useState } = owl; +const { Component, onMounted, onWillUpdateProps, onWillStart, useRef, useState } = owl; //------------------------------------------------------------------------- // Helpers @@ -59,6 +59,11 @@ export class SearchPanel extends Component { this.updateActiveValues(); }); + onWillUpdateProps(async () => { + await this.env.searchModel.sectionsPromise; + this.updateActiveValues(); + }); + onMounted(() => { this.updateGroupHeadersChecked(); if (this.hasImportedState) {