feature: Add iframe support for user.keyboard typing - #1275
Conversation
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
|
We actually just ran into this bug as well with the extra Further, I think any of these code paths calling
I would suggest splitting this PR to address that issue separately. I think the solution can simply stop internally wrapping events in I can work on a repro but I'm hoping that there is already enough evidence to make this change to stop wrapping it. Im also hoping for an answer to the question of if this call is even necessary. |
What
This adds user.keyboard iframe support (next to the already existing shadow dom support) to the active element so that userEvent can fire keyboard events on the correct element. This is particularly important because the event needs to stay within the iframe, it shouldn't ever appear outside of it.
This doesn't address tab behaviour, focus patching, and doesn't test removal of iframes with focus.
Why
We ran into this while developing a feature in adobe/react-spectrum#7561
How
Checklist