Closed ShannonLCapper closed 5 years ago
Looks like this may be the same issue seen here https://github.com/OfficeDev/office-js/issues/595
@ShannonLCapper Thanks for leaving additional info that I failed to add. Between the two issues, I think it tells a pretty complete picture of the problem. 😄
As a work around, I found that this issue was only occurring on the web client. The outlook desktop client appears to be unaffected by the issue (at least from my testing).
@ShannonLCapper sorry to hear that you've run into this problem; thanks for providing such detailed information.
@danielgwilson assigning this one to you for investigation (since it's related to Dialog API) -- please reassign if it should go to someone else. Also, please note that this issue is related to #595 (which @nathguen opened yesterday).
@ShannonLCapper Thanks for reporting this and proving such detailed information. We have added this to our backlog. Unfortunately, we have no timelines to share at this point
@kbrandl and @exextoc, has this been backlogged, or is it actively being worked on (as the fix pending
label suggests)? This issue provides a really broken experience for our users so I sincerely hope there's something we could do to get it fixed in the near future. Please let us know if there's anything we can do on our end to help!
@ShannonLCapper it's in the backlog (not yet actively being worked on, as far as I'm aware); unfortunately we have no timelines to share at this point for precisely when it'll be addressed. Apologies for the confusion re the fix pending
label; within this repository, that label is applied to any issue that's "on our list" to be addressed (regardless of whether or not it's actively being worked on yet).
Thanks for reporting this issue. we have checked-in the fix for this, will be live soon.
@exextoc thanks for the update! @ShannonLCapper clearly I was out of the loop re the status of this particular issue; my apologies for the earlier miscommunication!
@kbrandl, that's absolutely no problem. I'm just glad that you all were able to come up with a fix so quickly!
@exextoc @kbrandl any update on when the next release will be? We're also affected by this bug.
@exextoc @kbrandl @lliu113 Hi there! It looks like this fix is live; I can no longer reproduce the problem. 🎉
Is it correct that the fix has shipped?
@david-davidson thanks for reaching out about this.
@exextoc -- can you please confirm whether (or not) the fix for this issue has shipped? If it has shipped, please comment and close this issue. Thanks!
Yes, we shipped the fix. Thanks @david-davidson for confirming that problem is resolved for you.
In the "new experience" in OWA, the dialog API is not working correctly when dialogs are displayed with
displayInIframe: true
. ThedisplayDialogAsync
API works correctly the first time a dialog is opened withdisplayInIframe: true
, but after that dialog is closed, subsequent calls todisplayDialogAsync
will fail with status code 5001 (An internal error has occurred.
). However, this is especially bad because the dialog will indeed open, just without the taskpane receiving theDialogHandler
object to be able to interact with it.Expected Behavior
I would expect
displayDialogAsync
to call its provided callback with a success result and aDialogHandler
instance when it is called multiple times (as long as the dialog was closed in between each call). I would also expect that the dialog would NOT open ifdisplayDialogAsync
returned an error result and noDialogHandler
, as this prevents the taskpane from being able to interact with the dialog.Current Behavior
displayDialogAsync
withdisplayInIframe: true
works as expected when it is called the first time. However, after that dialog is closed, subsequent calls todisplayDialogAsync
withdisplayInIframe: true
return the following result:The dialog still opens in this case, and appears to be functional, but it cannot interact with the taskpane since the taskpane never received a
DialogHandler
instance on which to attach event handlers.This behavior does not reproduce with dialogs displayed with
displayInIframe: false
, nor does it reproduce in the "old" experience in OWA.Steps to Reproduce
openDialog = () => { Office.context.ui.displayDialogAsync(, {
width: 80,
height: 80,
displayInIframe: true,
}, (result) => {
console.log(result);
});
}
Office.initialize = renderButton;
<!doctype html>