Modern Event System: use focusin/focusout for onFocus/onBlur by trueadm · Pull Request #19186 · react/react (original) (raw)

This was referenced

Mar 16, 2021

adri1wald added a commit to adri1wald/slate that referenced this pull request

Mar 31, 2022

@adri1wald

dylans pushed a commit to ianstormtaylor/slate that referenced this pull request

Apr 3, 2022

@adri1wald

…lers in React >= 17 (#4920)

See facebook/react#19186 for details on changes to onFocus and onBlur

thang2162 added a commit to thang2162/m3r that referenced this pull request

May 24, 2023

@thang2162

Switched focus and blur out for focusin and focusout due to unintended side effect. React appears to have switch to using it even though it fires a warning. react/react#19186

tf added a commit to tf/floating-ui that referenced this pull request

Jul 23, 2024

@tf

React 17 switched to using focusin/focusout events for onFocus/onBlur [1]. floating-ui's focus manager appears to depend on this implicitly, causing focus to revert to body when tab-ing back into a floating portal with Reacht 16.

Manually using focusin/focusout appears to fix the problem.

[1] react/react#19186

This was referenced

Sep 8, 2024

This was referenced

Sep 20, 2024

This was referenced

Oct 1, 2024

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})