[FIX] web_editor: remove double click popup from links
It is wrong in 15.0 since double clicking on the link does nothing anymore, as edition of the link is done via the popover. Having both tooltips at the same time created a race condition that ended up inserting the second tooltip in the DOM, where it obviously couldn't function properly anymore. opw-3147108 closes odoo/odoo#112035 X-original-commit: 35cc6049a8bcc3c80cb4eb2468f85d09734814b8 Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
This commit is contained in:
@@ -1928,8 +1928,7 @@ const Wysiwyg = Widget.extend({
|
||||
this._updateMediaJustifyButton();
|
||||
this._updateFaResizeButtons();
|
||||
}
|
||||
const link = getInSelection(this.odooEditor.document, this.customizableLinksSelector);
|
||||
if (isInMedia || (link && link.isContentEditable)) {
|
||||
if (isInMedia) {
|
||||
// Handle the media/link's tooltip.
|
||||
this.showTooltip = true;
|
||||
this.tooltipTimeouts.push(setTimeout(() => {
|
||||
|
||||
Reference in New Issue
Block a user