From 8a4085997b7b898fc5dc5b439c695a5c241cd567 Mon Sep 17 00:00:00 2001 From: Nicolas Bayet Date: Tue, 24 Jan 2023 14:16:29 +0000 Subject: [PATCH] [FIX] web_editor: prevent a click to open the link dialog When clicking in a link in the forum, the link dialog was opened. This is wrong as there the link popover is shown and to open the link dialog, we must click on the button in the link popover. task-3147819 X-original-commit: 5c5aa21dffe3691547766cf1f16065ae74c41f07 Part-of: odoo/odoo#113135 --- addons/web_editor/static/src/js/wysiwyg/wysiwyg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js index e30dc4941ad..0ed7cd18021 100644 --- a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js +++ b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js @@ -384,7 +384,7 @@ const Wysiwyg = Widget.extend({ })(); } $target.focus(); - if ($target.closest('#wrapwrap').length) { + if ($target.closest('#wrapwrap').length && this.snippetsMenu) { this.toggleLinkTools({ forceOpen: true, link: $target[0],