From 60e2fc966eee441af8eb3bac214b55896b6cb7ed Mon Sep 17 00:00:00 2001 From: "Lou (loha)" Date: Wed, 10 May 2023 11:30:08 +0000 Subject: [PATCH] [FIX] web_editor: fix infinite flicker on option button hover MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bootstrap tooltips are overlapping the parent box, it could cause an infinite flicker in the web editor because the pointer goes over the tooltip, disabling the tooltip, refocusing the parent, enabling the tooltip, etc. Since commit [1], the tooltips are centered differently, making this worst because of a bigger overlap. Steps to reproduce: - drop a "Text" block - select it - hover the bottom border of the "50%" Height option --> The tooltip flickers infinitely, along with the blue overlay on the editor. This commit fixes it by disabling the pointer events of the tooltip. [1]: https://github.com/odoo/odoo/commit/09b720eff1a7 task-3299236 closes odoo/odoo#124262 X-original-commit: ec343728831c12eacdc6b3d031eb8d0b4b82ecdc Signed-off-by: Soukéina Bojabza (sobo) --- addons/web_editor/static/src/scss/wysiwyg_snippets.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss index 0a42a4584c3..5e733d8a355 100644 --- a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss +++ b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss @@ -302,6 +302,10 @@ } } + .tooltip { + pointer-events: none !important; + } + // Snippet filter input .o_snippet_search_filter { position: relative;