-
Notifications
You must be signed in to change notification settings - Fork 55
fix(Popup): proper handling of clicks in nested Popups #949
Conversation
Per our chat, consider a bit of renaming for clarity and alignment with browser APIs: <EventHandler
type='mousedown'
listener={() => {}}
targetRef={}
/> |
d8c82e3
to
bf15a47
Compare
392ebe7
to
25c5da6
Compare
Codecov Report
@@ Coverage Diff @@
## master #949 +/- ##
==========================================
- Coverage 82.3% 82.09% -0.21%
==========================================
Files 715 711 -4
Lines 8656 8528 -128
Branches 1178 1224 +46
==========================================
- Hits 7124 7001 -123
+ Misses 1516 1511 -5
Partials 16 16
Continue to review full report at Codecov.
|
e463233
to
7cb4a24
Compare
Changed dependencies in
Generated by 🚫 dangerJS |
7cb4a24
to
5601fe6
Compare
5601fe6
to
4c60a83
Compare
"files": [ | ||
"dist" | ||
], | ||
"homepage": "https://github.com/stardust-ui/react-component-nesting-registry#readme", |
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.
404
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.
👍
Updated to https://github.com/stardust-ui/react/tree/master/packages/react-component-nesting-registry, it is still 404, but will work after PR will be merged
@@ -470,7 +436,6 @@ export default class Popup extends AutoControlledComponent<ReactProps<PopupProps | |||
const popupWrapperAttributes = { | |||
...(rtl && { dir: 'rtl' }), | |||
...accessibility.attributes.popup, | |||
...accessibility.keyHandlers.popup, |
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 think accessibility.keyHandlers
were originally planned to be generic enough to contain anything. With this being replaced by keyHandler on document is this still true?
popup-test
contains neither isConformant
nor handlesAccessibility
:-/
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.
Actually, I want to revert this change and rework behavior part separately. What do you think?
packages/react-component-nesting-registry/src/lib/RegistrySet.ts
Outdated
Show resolved
Hide resolved
docs/src/examples/components/Popup/Usage/PopupExampleNested.shorthand.tsx
Outdated
Show resolved
Hide resolved
…thub.com/stardust-ui/react into feat/children-nesting-api # Conflicts: # CHANGELOG.md # packages/react-component-nesting-registry/src/NestingRoot.tsx # packages/react-component-nesting-registry/src/hooks/useNestingRoot.ts
FYI: @miroslavstastny @mnajdova I moved keyboard/accessibility issues to a separate issue #1079 |
const popupContent = Popup.Content.create(content, { | ||
defaultProps: popupContentAttributes, | ||
overrideProps: this.getContentProps, | ||
}) |
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.
We don't need this check more, it was introduced in #592. Now it will be done by factories.
…thub.com/stardust-ui/react into feat/children-nesting-api # Conflicts: # CHANGELOG.md # packages/react/package.json # packages/react/src/lib/accessibility/FocusZone/FocusTrapZone.tsx
Fixes #1013.
Remove existing
EventStack
Was completely replaced by
@stardust-ui/react-component-event-listener
&@stardust-ui/react-component-nesting-registry
.