Как проверить, что диалоговое окно материала закрыто? Я должен запустить код, когда диалог полностью закрывается. Я использовал .afterClosed();
метод, но все еще в IE как-то мой пользовательский код запускается до полного закрытия диалога.
Метод, который возвращает значение:
confirmComplete(location:string):Observable<boolean>{
return this.dialogUtil.infoMessage(`You are currently filling this order with inverntory from ${location}.
Click "Confirm" to complete the picking process or "Cancel" to change the inventory location.`,
`Confirmation`,
DialogUtil.MessageStyle.Pre,
DialogUtil.PromptStyle.ConfirmCancel
).afterClosed();
}
Вот как я потребляю вышеуказанный метод:
this.confirmComplete(this.userLocation.displayName).subscribe(ok => ok ? this.process() : this.userStore.focusLocationDropDown(true));
Каким-то образом this.userStore.focusLocationDropDown(true)
вызывается до того, как диалоговое окно полностью закрывается, и я сталкиваюсь с этой проблемой только в IE11
, она отлично работает в chrome.