fix(menu): await animation check

Closes #15377
This commit is contained in:
mhartington
2018-08-29 17:47:23 -04:00
parent 27518e5814
commit f00db59d8f

View File

@ -210,7 +210,7 @@ export class MenuController {
@Method()
async _setOpen(menu: MenuI, shouldOpen: boolean, animated: boolean): Promise<boolean> {
if (this.isAnimating()) {
if (await this.isAnimating()) {
return false;
}
if (shouldOpen) {