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

fix(focustrap): discarding tabindex='-1' when finding element #2888

Merged
merged 1 commit into from
Nov 28, 2018

Conversation

benouat
Copy link
Member

@benouat benouat commented Nov 28, 2018

When focus-trap needs to figure out what are the boundaries elements (first and last focusable elements) we need to perform an extra check to filter out elements with tabindex="-1"

Closes #2884

Copy link
Member

@maxokorokov maxokorokov left a comment

Choose a reason for hiding this comment

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

LGTM

<button class="other">Other button</button>
`
})
export class WithSkipTabindexFirstFocusableModalCmpt {
Copy link
Member

Choose a reason for hiding this comment

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

Good naming! Though, could you change to WithNegativeTabIndexElementThatShouldBeSkippedWhileFindingFirstFocusableElementModalComponent?

Just kidding :)

@maxokorokov maxokorokov added this to the 4.0.1 milestone Nov 28, 2018
@benouat benouat merged commit db7347b into ng-bootstrap:master Nov 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants