-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Reveal anchor focus fix #10711
Reveal anchor focus fix #10711
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@IamManchanda Would you like to review this PR or do I merge it ? |
Taking this up @ncoden |
@@ -228,6 +228,9 @@ class Reveal extends Plugin { | |||
} | |||
} | |||
|
|||
// Remember anchor that opened it to set focus back later, have general anchors as fallback | |||
this.$activeAnchor = $(document.activeElement).is(this.$anchor) ? $(document.activeElement) : this.$anchor; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should merge it @ncoden |
@IamManchanda This PR do not install or update any package. Why updating the yarn lock file there ? |
This reverts commit 6cfebc3.
…ix for v6.5.0 9fce99e Focus active anchor rather than last one in collection when closing a Reveal modal. 9e8535a Added tests for foundation#10604. f954f7e Added visual test for foundation#10604. 6cfebc3 Update Yarn file! 6bc8691 Revert "Update Yarn file!" Co-Authored-By: Harry Manchanda <harmanmanchanda182@gmail.com> Co-Authored-By: Nicolas Coden <nicolas@ncoden.fr> Signed-off-by: Nicolas Coden <nicolas@ncoden.fr>
Focus active anchor rather than last one in collection when closing a Reveal modal.
Addresses #10604.