Skip to content

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.

@jimohalloran jimohalloran force-pushed the ignore_tabbable_fix_1061 branch from 6d63183 to eef8af4 Compare May 17, 2021 08:14
@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