diff --git a/addons/web/static/src/core/tooltip/tooltip_service.js b/addons/web/static/src/core/tooltip/tooltip_service.js index 38e2cca939d..7853f391f66 100644 --- a/addons/web/static/src/core/tooltip/tooltip_service.js +++ b/addons/web/static/src/core/tooltip/tooltip_service.js @@ -127,6 +127,11 @@ export const tooltipService = { * @param {HTMLElement} el */ function openElementsTooltip(el) { + // Fix weird behavior in Firefox where MouseEvent can be dispatched + // from TEXT_NODE, even if they shouldn't... + if (el.nodeType === Node.TEXT_NODE) { + return; + } if (elementsWithTooltips.has(el)) { openTooltip(el, elementsWithTooltips.get(el)); } else if (el.matches("[data-tooltip], [data-tooltip-template]")) {