我们使用Office Dialog Api作为O365 Outlook插件 . 在Web上,无法从右上角的本机“x”或使用dialog.close()方法关闭从api打开的对话框 . innerHtml被删除但对话框窗口本身不会关闭 . “displayInIframe”属性设置为true或false时,此问题仍然存在 .
更新:
Outlook桌面(Windows或Mac)上不会发生此问题 . 仅发生在Web实例(使用的chrome)上 .
Office.context.ui.displayDialogAsync(url, options.dialogOptions,
(asyncResult) => {
if (asyncResult.status === Office.AsyncResultStatus.Failed) {
$log.debug('Display Dialog Error: ', asyncResult.error);
}
else {
_dialog = asyncResult.value;
if (options.params) {
_dialog.addEventHandler(Office.EventType.DialogMessageReceived, handleDialogMessageEvent);
_dialog.addEventHandler(Office.EventType.DialogEventReceived, eventReceivedHandler);
1 回答
在Web上的Office 365 Outlook中找到此问题 . 解决此问题的修复程序已经推出到 生产环境 环境 . 如果问题仍然存在,请尝试刷新浏览器的缓存 .