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

Improve focus with portals #4245

Merged

Conversation

Sam-Apostel
Copy link
Contributor

This PR changes focus behaviour to fix portal usage.
Using portals, tab moves focus out of datepicker but leaves portal open.
A check was removed that only closed the portal on Shift + Tab, and replaced with just Tab

Without portal, user can still enter the picker with arrow keys.
Tabbing through a form with a datepicker should not land the user into a tab loop/trap.

closes #3522

Using portals, tab moves focus out of datepicker but leaves portal open.
Without portal, user can still enter the picker with arrow keys.

Tabbing through the datepicker should not land the user into a tab trap.

closes Hacker0x01#3522
Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ This pull request was sent to the PullRequest network.


@Sam-Apostel you can click here to see the review status or cancel the code review job.

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PullRequest Breakdown

Reviewable lines of change

+ 18
- 18

100% JavaScript

Type of change

Minor Update - These changes appear to be a minor update to existing functionality and features.

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The majority of the chnages is prettier updates, that said the one functional change looks good and no issues are noted.

Image of David K David K


Reviewed with ❤️ by PullRequest

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This appears to be a straightforward change that matches the PR description. Nice work!

Image of Tyler O Tyler O


Reviewed with ❤️ by PullRequest

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.

Focus is not handled correctly with portals
2 participants