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
dylans pushed a commit to ianstormtaylor/slate that referenced this pull request
…lers in React >= 17 (#4920)
- use focusin and focusout without capture if react >= 17
See facebook/react#19186 for details on changes to onFocus and onBlur
more accurate name for react version check const
add changeset
add comment about react >= 17 focus event listeners
thang2162 added a commit to thang2162/m3r that referenced this pull request
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
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.
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 }})