fx-compat: Fix error when v-t tooltip shows

This commit is contained in:
Abe Jellinek 2022-07-06 11:12:44 -04:00
parent 0983ffbef2
commit abe19b9435

View file

@ -1012,8 +1012,8 @@ class VirtualizedTable extends React.Component {
let tooltip = document.createXULElement('tooltip');
tooltip.id = 'html-tooltip';
tooltip.addEventListener('popupshowing', function(e) {
let tooltipTitleNode = document.tooltipNode.closest('div *[title], iframe *[title], browser *[title]');
if (document.tooltipNode && tooltipTitleNode) {
let tooltipTitleNode = tooltip.triggerNode?.closest('div *[title], iframe *[title], browser *[title]');
if (tooltipTitleNode) {
this.setAttribute('label', tooltipTitleNode.getAttribute('title'));
return;
}