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

Oro ignore-tabbable.js breaks default tab to focus behaviour #1062

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jimohalloran
Copy link

This PR is a simple fix for #1061. Currently when ignore-tabbable.js switches focus to a new element, the contents of the new element is not highlighted breaking the default web browser behaviour.

This PR checked to see if the element just focused has a "select" method, and if so calls it to select the contents of the newly focused element. Select boxes and buttons don't have a selection and therefore we shouldn't just blindly call select() on everything.

@anyt
Copy link
Contributor

anyt commented May 17, 2021

Thank you for your contribution, @jimohalloran.
The team will review your PR in the scope of the above bug fix and merge if it suits.
Internal ticket id BB-20605.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants