material-components-web icon indicating copy to clipboard operation
material-components-web copied to clipboard

fix(list): Removed unnecessary setTimeout method for focusOut event.

Open akaSourav opened this issue 4 years ago • 3 comments

FocusEvent.relatedTarget is the secondary target that is receiving focus in focusOut event. So we can use this EventTarget to find out whether the focus is inside the root.

akaSourav avatar Aug 25 '21 06:08 akaSourav

Thanks for this PR! Do you happen to know whether this behavior is consistent across browsers? My main concern is ensuring that relatedTarget can be used on all of our supported platforms.

brandondiamond avatar Aug 27 '21 17:08 brandondiamond

Thanks for this PR! Do you happen to know whether this behavior is consistent across browsers? My main concern is ensuring that relatedTarget can be used on all of our supported platforms.

Don't know about IE. But it is consistent in Chrome and Firefox.

akaSourav avatar Aug 27 '21 19:08 akaSourav

microsoft gives up IE, so we can give up it too. can we solve PR?

anlexN avatar Jul 10 '22 05:07 anlexN