-
Notifications
You must be signed in to change notification settings - Fork 54
fix(Popup): Do not propagate keydown events outside Popup's content #987
Conversation
Codecov Report
@@ Coverage Diff @@
## master #987 +/- ##
=========================================
+ Coverage 81.08% 81.1% +0.01%
=========================================
Files 671 671
Lines 8625 8627 +2
Branches 1456 1520 +64
=========================================
+ Hits 6994 6997 +3
+ Misses 1616 1615 -1
Partials 15 15
Continue to review full report at Codecov.
|
…ithub.com/stardust-ui/react into fix/popup-do-not-propagate-keydown-events # Conflicts: # CHANGELOG.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -439,8 +438,12 @@ export default class Popup extends AutoControlledComponent<ReactProps<PopupProps | |||
const popupWrapperAttributes = { | |||
...(rtl && { dir: 'rtl' }), | |||
...accessibility.attributes.popup, | |||
...accessibility.keyHandlers.popup, | |||
|
|||
onKeyDown: (e: React.KeyboardEvent) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know it is too late now, but I was just wondering whether our suggestion for the users would have been override the onKeyDown
for the Popup and stop propagating if you want? This seem too much specific to the client's needs that we had at that moment.. @layershifter @sophieH29
Closes #978
No need to propagate keydown events outside Popup, allow only keyboard actions to execute