[FIX] web_editor: remove observerUnactive before adding tooltip
Since [1], the tooltip is not longer the jQuery-UI or Bootstrap one, but the popover service with the Tooltip component, which does not make changes to the editable DOM when being added or removed. This means that switching the observer off before opening the tooltip is no longer necessary. [1]: https://github.com/odoo/odoo/commit/08cd27cc8ad78d2ee9ffe80ddb9e1cc50a557ee2 closes odoo/odoo#141882 Signed-off-by: Nicolas Bayet (nby) <nby@odoo.com>
This commit is contained in:
@@ -2178,9 +2178,7 @@ export class Wysiwyg extends Component {
|
||||
}
|
||||
// Tooltips need to be cleared before leaving the editor.
|
||||
this.saving_mutex.exec(() => {
|
||||
this.odooEditor.observerUnactive();
|
||||
const removeTooltip = this.popover.add(e.target, Tooltip, { tooltip: _t('Double-click to edit') });
|
||||
this.odooEditor.observerActive();
|
||||
this.tooltipTimeouts.push(setTimeout(() => removeTooltip(), 800));
|
||||
});
|
||||
}, 400));
|
||||
|
||||
Reference in New Issue
Block a user