Skip to content
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

Always update focus on moving inside a container #37

Merged
merged 2 commits into from
Jan 11, 2024

Conversation

Murreey
Copy link
Contributor

@Murreey Murreey commented Jan 10, 2024

Description

Updating the data-focus attribute every time focus moves inside a container, rather than only setting it once when focus moves out of the container.

Motivation and Context

Fixes the scenario where focus is moved out of a container by any other JS that's not lrud (or a user input), and it 'forgets' what the active child was because it never got saved.

How Has This Been Tested?

New integration test

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@Murreey Murreey requested a review from a team as a code owner January 10, 2024 15:10
@Murreey Murreey merged commit 3c38434 into master Jan 11, 2024
1 check passed
@Murreey Murreey deleted the always-update-focus branch January 11, 2024 10:22
@Murreey Murreey mentioned this pull request Jan 22, 2024
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants