diff --git a/addons/web_editor/static/src/js/editor/snippets.editor.js b/addons/web_editor/static/src/js/editor/snippets.editor.js index 9af38adb04d..de5845ad45c 100644 --- a/addons/web_editor/static/src/js/editor/snippets.editor.js +++ b/addons/web_editor/static/src/js/editor/snippets.editor.js @@ -1815,6 +1815,7 @@ var SnippetsMenu = Widget.extend({ id: 'oe_manipulators', }); this.$body.prepend(this.$snippetEditorArea); + this.options.getScrollOptions = this._getScrollOptions.bind(this); // Add tooltips on we-title elements whose text overflows and on all // elements with available tooltip text. Note that the tooltips of the @@ -1863,7 +1864,6 @@ var SnippetsMenu = Widget.extend({ this.emptyOptionsTabContent = document.createElement('div'); this.emptyOptionsTabContent.classList.add('text-center', 'pt-5'); this.emptyOptionsTabContent.append(_t("Select a block on your page to style it.")); - this.options.getScrollOptions = this._getScrollOptions.bind(this); // Fetch snippet templates and compute it defs.push((async () => {