[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) <qsm@odoo.com>
Signed-off-by: Benoit Socias (bso) <bso-odoo@users.noreply.github.com>
This commit is contained in:
Benoit Socias
2021-08-25 12:02:03 +00:00
parent f240a42ab5
commit 1aa9a7d76d
@@ -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;