MM-26638 MM-26656 await when dismissing post options modal (#4518)
This commit is contained in:
parent
083deb9eab
commit
92e7adc852
1 changed files with 3 additions and 3 deletions
|
|
@ -56,7 +56,7 @@ export default class PostOptions extends PureComponent {
|
|||
};
|
||||
|
||||
close = async (cb) => {
|
||||
dismissModal();
|
||||
await dismissModal();
|
||||
|
||||
if (typeof cb === 'function') {
|
||||
requestAnimationFrame(cb);
|
||||
|
|
@ -260,7 +260,7 @@ export default class PostOptions extends PureComponent {
|
|||
onEmojiPress: this.handleAddReactionToPost,
|
||||
};
|
||||
|
||||
this.close(() => showModal(screen, title, passProps));
|
||||
this.closeWithAnimation(() => showModal(screen, title, passProps));
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -362,7 +362,7 @@ export default class PostOptions extends PureComponent {
|
|||
closeButton: source,
|
||||
};
|
||||
|
||||
this.close(() => showModal(screen, title, passProps));
|
||||
this.closeWithAnimation(() => showModal(screen, title, passProps));
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue