Merge pull request #6238 from matrix-org/gsouquet/fix-17716
Fix modal opening race condition
This commit is contained in:
commit
f56216eec5
1 changed files with 1 additions and 1 deletions
|
@ -385,7 +385,7 @@ export class ModalManager {
|
|||
</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());
|
||||
|
|
Loading…
Reference in a new issue