Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

fix(Accessibility): filter out key actions with no key combinations#2060

Merged
miroslavstastny merged 3 commits intomasterfrom
fix/rtl-key-handlers
Oct 24, 2019
Merged

fix(Accessibility): filter out key actions with no key combinations#2060
miroslavstastny merged 3 commits intomasterfrom
fix/rtl-key-handlers

Conversation

@miroslavstastny
Copy link
Member

Fixes #2058.
Ignore keyActions with empty keyCombinations. Fixes exception in RTL.


actionsDefinition.anotherPart = {
otherAction: {
keyCombinations: false,
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add tests for other falsy values as well, like undefined, null, [] etc.

Copy link
Member Author

Choose a reason for hiding this comment

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

added test, fixed code for []. could you please recheck?

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks good!

@miroslavstastny miroslavstastny merged commit 08c4555 into master Oct 24, 2019
@miroslavstastny miroslavstastny deleted the fix/rtl-key-handlers branch October 24, 2019 15:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keyboard navigation key handlers exception in RTL

3 participants