react-aria-modal icon indicating copy to clipboard operation
react-aria-modal copied to clipboard

React 16.9+ failures: `initialFocus` refers to no known node

Open wldcordeiro opened this issue 6 years ago • 1 comments

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.

wldcordeiro avatar Oct 07 '19 17:10 wldcordeiro

Ah I ran into this as well! I think it's actually reported in one of this library's dependencies at https://github.com/davidtheclark/focus-trap-react/issues/24. About a year ago, I documented my findings in a comment at https://github.com/davidtheclark/focus-trap-react/issues/24#issuecomment-431424268.

toolness avatar Nov 27 '19 10:11 toolness