Trying to use react-tooltip library, it fails when trying to call matches
function on the element. Source code can be found in mouseOnToolTip
function here: react-tooltip/index.js at ae936a5275ee4a2cf32a84dbf8dc004e20b748e1 · wwayne/react-tooltip · GitHub
if (show && this.tooltipRef) {
/* old IE or Firefox work around */
if (!this.tooltipRef.matches) {
/* old IE work around */
if (this.tooltipRef.msMatchesSelector) {
this.tooltipRef.matches = this.tooltipRef.msMatchesSelector;
} else {
/* old Firefox work around */
this.tooltipRef.matches = this.tooltipRef.mozMatchesSelector;
}
}
return this.tooltipRef.matches(':hover');
}
This code, even with workarounds, results in undefined matches
function.