diff --git a/addons/website/static/src/js/editor/snippets.options.js b/addons/website/static/src/js/editor/snippets.options.js index 0d09549d750..42a48d829ac 100644 --- a/addons/website/static/src/js/editor/snippets.options.js +++ b/addons/website/static/src/js/editor/snippets.options.js @@ -2300,26 +2300,7 @@ options.registry.WebsiteLevelColor = options.Class.extend({ }); options.registry.HeaderLayout = options.registry.WebsiteLevelColor.extend({ - /** - * @overide - */ - async customizeWebsiteViews(previewMode, widgetValue, params) { - const _super = this._super.bind(this); - - if (params.name === 'header_sidebar_opt') { - // When the user selects sidebar as header, make sure that the - // header position is regular. - await new Promise(resolve => { - this.trigger_up('action_demand', { - actionName: 'toggle_page_option', - params: [{name: 'header_overlay', value: false}], - onSuccess: () => resolve(), - }); - }); - } - - return _super(...arguments); - } + // TODO: to remove in master, it is only kept for the stable versions. }); options.registry.HeaderElements = options.Class.extend({ diff --git a/addons/website/static/src/scss/website.scss b/addons/website/static/src/scss/website.scss index 9e0b20d257e..dc623dd464e 100644 --- a/addons/website/static/src/scss/website.scss +++ b/addons/website/static/src/scss/website.scss @@ -1299,7 +1299,7 @@ header { } #wrapwrap.o_header_overlay { - > header:not(.o_header_affixed):not(.o_top_menu_collapse_shown) { + > header:not(.o_header_affixed):not(.o_top_menu_collapse_shown):not(.o_header_sidebar) { @include o-position-absolute(0, 0, auto, 0); z-index: 1000;