Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React 16.9+ failures: initialFocus refers to no known node #96

Open
wldcordeiro opened this issue Oct 7, 2019 · 1 comment
Open

React 16.9+ failures: initialFocus refers to no known node #96

wldcordeiro opened this issue Oct 7, 2019 · 1 comment

Comments

@wldcordeiro
Copy link
Collaborator

I've run into issues when updating to latest React where that error is thrown, primarily in test environments. It appears like we're checking for the initialFocus before it has rendered though when I run debug() in react-testing-library.

Working on getting a minimal reproduction case.

@toolness
Copy link
Collaborator

Ah I ran into this as well! I think it's actually reported in one of this library's dependencies at focus-trap/focus-trap-react#24. About a year ago, I documented my findings in a comment at focus-trap/focus-trap-react#24 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants