-
Notifications
You must be signed in to change notification settings - Fork 90
[CCI] Update tabbable dependency #650
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,7 +36,7 @@ import React, { | |
| ReactNode, | ||
| } from 'react'; | ||
| import classNames from 'classnames'; | ||
| import tabbable from 'tabbable'; | ||
| import { tabbable } from 'tabbable'; | ||
|
|
||
| import { CommonProps, NoArgCallback, keysOf } from '../common'; | ||
| import { OuiIcon } from '../icon'; | ||
|
|
@@ -270,7 +270,10 @@ export class OuiContextMenuPanel extends Component<Props, State> { | |
|
|
||
| // Otherwise let's focus the first tabbable item and expedite input from the user. | ||
| if (this.content) { | ||
| const tabbableItems = tabbable(this.content); | ||
| const tabbableItems = tabbable(this.content, { | ||
| displayCheck: 'legacy-full', | ||
| }); | ||
|
Comment on lines
+273
to
+275
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this the only instance where options are added to the
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The rest of the cases do not cause problems with the tests and smoothly support the transition to the new version. In this file apparently a different case, after the upgrade the tests did not behave correctly, so I had to apply
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's open a follow-up issue to see if we can refactor and remove. |
||
|
|
||
| if (tabbableItems.length) { | ||
| tabbableItems[0].focus(); | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.