-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[core] fix(Overlay2): use mutable stack ref, fix document event listeners #6681
Conversation
WIP fix useOverlayStackBuild artifact links for this commit: documentation | landing | table | demoThis is an automated comment from the deploy-preview CircleCI job. |
use mutable stackBuild artifact links for this commit: documentation | landing | table | demoThis is an automated comment from the deploy-preview CircleCI job. |
<OverlaysProvider> | ||
<HotkeysProvider> |
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.
need to add docs about the ordering of these providers. will do that in a separate PR which adds <BlueprintProvider>
fix lint: break import cycleBuild artifact links for this commit: documentation | landing | table | demoThis is an automated comment from the deploy-preview CircleCI job. |
@@ -55,6 +55,9 @@ export interface OverlayInstance { | |||
/** Document "focus" event handler which needs to be attached & detached appropriately. */ | |||
handleDocumentFocus: (e: FocusEvent) => void; | |||
|
|||
/** Document "mousedown" event handler which needs to be attached & detached appropriately. */ |
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.
now that there's an appropriate global context manager to handle this kind of logic, we should consider refactoring this behavior to have a single handler for the whole overlay stack instead of separate handlers for each overlay which need to be attached/detached. that would likely be safer and less prone to memory leaks.
Fixes #6679
Checklist
Changes proposed in this pull request:
Overlay2
): improve overlay stack state management to fix document mousedown event handlerReviewers should focus on:
Fixes the linked bug
Screenshot