From 1aa9a7d76d54b7f4cab4562fccd5309fc86522bf Mon Sep 17 00:00:00 2001 From: Benoit Socias Date: Tue, 24 Aug 2021 09:29:14 +0000 Subject: [PATCH] [FIX] website: avoid losing link focus when clicking on popover Before this commit clicking between the buttons of the link popover widget did deselect the link. When this happened, if edit was clicked and the edited link was one within the popover widget instead of the one on the page. After this commit clicking on the popover between the buttons has no effect anymore. task-2630257 closes odoo/odoo#75544 X-original-commit: 536f72333297ea70cd06c83d92ab0d8f25c0142e Signed-off-by: Quentin Smetz (qsm) Signed-off-by: Benoit Socias (bso) --- addons/website/static/src/scss/website.editor.ui.scss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/website/static/src/scss/website.editor.ui.scss b/addons/website/static/src/scss/website.editor.ui.scss index 484360c78c1..954e111230c 100644 --- a/addons/website/static/src/scss/website.editor.ui.scss +++ b/addons/website/static/src/scss/website.editor.ui.scss @@ -116,6 +116,9 @@ $o-we-switch-inactive-color: #F7F7F7 !default; max-width: $popover-max-width * 1.2; // Prevent UI glitch after fetching page preview (size might change) width: $popover-max-width * 1.2; + // Prevent the edited link from being deselected when clicking between + // buttons in the popover + user-select: none; .o_we_url_link { word-break: break-all;