File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ class ReactTooltip extends React.Component {
191
191
* These listeners used to trigger showing or hiding the tooltip
192
192
*/
193
193
bindListener ( ) {
194
- const { id, globalEventOff} = this . props
194
+ const { id, globalEventOff, isCapture } = this . props
195
195
let targetArray = this . getTargetArray ( id )
196
196
197
197
targetArray . forEach ( target => {
@@ -217,7 +217,7 @@ class ReactTooltip extends React.Component {
217
217
// Global event to hide tooltip
218
218
if ( globalEventOff ) {
219
219
window . removeEventListener ( globalEventOff , this . hideTooltip )
220
- window . addEventListener ( globalEventOff , this . hideTooltip , false )
220
+ window . addEventListener ( globalEventOff , this . hideTooltip , isCapture )
221
221
}
222
222
223
223
// Track removal of targetArray elements from DOM
You can’t perform that action at this time.
0 commit comments