We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 558ac6d + a60e9ff commit 76910c4Copy full SHA for 76910c4
src/index.js
@@ -164,9 +164,15 @@ class ReactTooltip extends React.Component {
164
const {show} = this.state
165
166
if (show && this.tooltipRef) {
167
- /* old IE work around */
+ /* old IE or Firefox work around */
168
if (!this.tooltipRef.matches) {
169
- this.tooltipRef.matches = this.tooltipRef.msMatchesSelector
+ /* old IE work around */
170
+ if (this.tooltipRef.msMatchesSelector) {
171
+ this.tooltipRef.matches = this.tooltipRef.msMatchesSelector
172
+ } else {
173
+ /* old Firefox work around */
174
+ this.tooltipRef.matches = this.tooltipRef.mozMatchesSelector
175
+ }
176
}
177
return this.tooltipRef.matches(':hover')
178
0 commit comments