-
Notifications
You must be signed in to change notification settings - Fork 111
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
focus-trap returns an error on Safari 15.3 and lower #996
Comments
@msev Thank you. Very sorry about that. This will be fixed shortly. @DaviDevMod FYI... |
Apologies, that was my bad. I'm going to send a PR to fix it. |
Because it doesn't have acceptable browser support. https://caniuse.com/mdn-javascript_builtins_array_findlast Fixes focus-trap#996
* Remove references to `Array.prototype.findLast()` Because it doesn't have acceptable browser support. https://caniuse.com/mdn-javascript_builtins_array_findlast Fixes #996 * Add changeset --------- Co-authored-by: Stefan Cameron <stefan@stefcameron.com>
Thanks @stefcameron and @DaviDevMod |
@all-contributors add @msev for bug |
I've put up a pull request to add @msev! 🎉 |
The "with positive tab indexes" demo is one that uses the |
Fix published in v7.5.2 |
For your information, I've updated to version 7.5.2 and everything works well on Safari (13/14/15). Thanks again for the patch! |
Awesome! 😅 You're welcome. |
Hi,
Since 7.5.0,
focus-trap
is broken on Safari (macOS, iOS) on 15.3 and lower.When I initialize
focus-trap
, the console returns the following error:I think it comes from findLast(), whose support is relatively recent.
Do you think you can fix this problem?
The text was updated successfully, but these errors were encountered: