summaryrefslogtreecommitdiff
path: root/addons/web_editor/static
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web_editor/static')
-rw-r--r--addons/web_editor/static/src/js/editor/snippets.editor.js8
1 files changed, 5 insertions, 3 deletions
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 424b1d4b631..0a757da0e12 100644
--- a/addons/web_editor/static/src/js/editor/snippets.editor.js
+++ b/addons/web_editor/static/src/js/editor/snippets.editor.js
@@ -2679,9 +2679,11 @@ var SnippetsMenu = Widget.extend({
// make text tools visible only on that specific tab). Also do it with
// a slight delay to avoid flickering doing it twice.
clearTimeout(this._textToolsSwitchingTimeout);
- this._textToolsSwitchingTimeout = setTimeout(() => {
- this._updateLeftPanelContent({tab: this.tabs.OPTIONS});
- }, 250);
+ if (!this.$('#o_scroll').hasClass('d-none')) {
+ this._textToolsSwitchingTimeout = setTimeout(() => {
+ this._updateLeftPanelContent({tab: this.tabs.OPTIONS});
+ }, 250);
+ }
},
/**
* @private