-
Notifications
You must be signed in to change notification settings - Fork 70
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-focus-lock with [email protected] throws when focus taken from cross-origin iframe #241
Comments
Yep, you cannot and that's a serious regression. Look like I've broken internet one another time 🎉 |
We ran into this issue too, but pinning |
Yes, because react-focus-lock has dependency "focus-lock": "^0.doesNotMatter", all versions of react-focus-lock can be affected. The issue should be moved into the focus-lock repository. The workaround is to install explicit versions in your package.json: |
An update to focus-lock(0.11.6) and react-focus-lock(2.9.4) has been released. There is still no test securing the right behaviour as JSDOM does not support cross-origin security concerns - jsdom/jsdom#1892 I will add real Browser tests, at least a few, shortly - #242 |
Hi, go to https://codesandbox.io/s/focus-lock-fail-4gkvyx?file=/src/App.tsx and press Click.
In [email protected] nothing happens, but in @2.9.3 because of this, I assume, it throws and can break the app.
How can I achieve some kind of "try and swallow" approach?
The text was updated successfully, but these errors were encountered: