Skip to content

[7.x] [uiActions] Improve context menu keyboard support (#70705)#71435

Merged
Dosant merged 1 commit intoelastic:7.xfrom
Dosant:backport/7.x/pr-70705
Jul 13, 2020
Merged

[7.x] [uiActions] Improve context menu keyboard support (#70705)#71435
Dosant merged 1 commit intoelastic:7.xfrom
Dosant:backport/7.x/pr-70705

Conversation

@Dosant
Copy link
Copy Markdown
Contributor

@Dosant Dosant commented Jul 13, 2020

Backports the following commits to 7.x:

* Improves position resolution logic by also tracking last clicked element.
* Adds ownFocus prop, so can pick menu item with keyboard.
* Also track if target element was removed from DOM. In that case tries to use previous element. won't work all the time, but works nicely in case context menu trigger by item in other context menu.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@Dosant Dosant added the backport This PR is a backport of another PR label Jul 13, 2020
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Build metrics

✅ unchanged

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@Dosant Dosant merged commit 7bcc84d into elastic:7.x Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants