-
-
Notifications
You must be signed in to change notification settings - Fork 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
Modals launching other Modals no longer work #17716
Comments
also if you try to reproduce this, the sign out button will stop working until you refresh the page |
related or not related, but also happened to me here: #17593 (comment) |
Actually this looks related to the React 17 upgrade |
So I think we're hitting some race inside the guts of React. Index: src/Modal.tsx
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/Modal.tsx (revision 54c3832b5b9dde5981eb1934f599e7b75eac00e8)
+++ src/Modal.tsx (date 1624303471241)
@@ -385,7 +385,7 @@
</div>
);
- ReactDOM.render(dialog, ModalManager.getOrCreateContainer());
+ setImmediate(() => ReactDOM.render(dialog, ModalManager.getOrCreateContainer()));
} else {
// This is safe to call repeatedly if we happen to do that
ReactDOM.unmountComponentAtNode(ModalManager.getOrCreateContainer());
Not sure what the best way to proceed is here This probably affects other modals which open other modals so marking as Major Yup, just found that the
Both appear to be fixed by the setImmediate |
Actually the keywords modal was only broken because I attempted to visit send debug logs. So this looks to affect non-priority non-static modals when one closes itself and then opens another in the very same tick. |
The text was updated successfully, but these errors were encountered: