react-tippy icon indicating copy to clipboard operation
react-tippy copied to clipboard

Bugfix for IE11 blur event

Open jlek opened this issue 8 years ago • 3 comments

Hello,

First off, thanks for react-tippy. We've been using it for a few months now, and it's great. :+1:

I did find a little bug though: on Internet Explorer 11 the blur event does have a relatedTarget property. This meant that a ToolTip with a "focus" trigger would not disappear when the user tabs away from the ToolTip.

This fork works by using the focusout event, rather than the blur event. I am not sure if that is the "correct" fix, but if it is, please accept this pull request. :)

Many thanks, John

jlek avatar Dec 07 '17 16:12 jlek

What is the status on this PR? I'm having IE 11 issues as well...

sethdavis512 avatar Feb 23 '18 22:02 sethdavis512

I've heard absolutely nothing. :(

jlek avatar Feb 26 '18 09:02 jlek

Thanks for your contribution @jlek,

But has to say when it comes to IE, it's more likely to be its own bug, and in this case, it is. And this PR seems not able to fix it as blur and focusout is the same, the only different is focusout is support event bubbling (http://api.jquery.com/focusout/)

But I have not test on any IE yet so if you can have a test and some results on IE and chrome and Firefox workout with this PR then we could consider merge it as a solution.

Thanks

tuanthieu2993 avatar Oct 07 '18 14:10 tuanthieu2993