Why does modal dialog not render?

One of our app has a button in an issue glance that opens a new modal dialog using

window.AP.dialog.create({
            key: "detail-dialog",
            width: 700,
            height: 500,
            chrome: true,
            header: "Detail Dialog",
            cancelText: "Close",
            customData: {id, name, state},
        });

Unfortunately, it seems this has stopped working in some cases. All we see is a white box with the dialog opening but then our iframe content is not rendered and the Close button does not work (escape works).

It seems that this is only happening on Jira Software views (boards, backlog, etc.) but the behavior is quite inconsistent, so I struggle to confirm this. Also, while it seems to work in our dev instance it does not work in our staging and production instances.

Curious if anyone else has noticed this before?

Hi @tbinna,

I’m currently working with another vendor on a similar issue. That is, AP behaving inconsistently on some instances wrt dialog.close, context, jira API and only in Agile boards or backlogs. I’m still investigating on this so no product issue yet. But can you please share what you see in your developer tools?

Cheers,
Anne

1 Like

Hi @acalantog,

Sure, here is my console output. The error on FocusLock appears in other cases too where it worked - not sure about the jquery.fancybox one though.

image

Do let me know if you need any other details.

Cheers!

Hi @tbinna,

Thanks. Are you loading all.js using the CDN, ie https://connect-cdn.atl-paas.net/all.js ?

Cheers,
Anne

Hi Anne, yes, we do.

Hi @tbinna,

Thanks for that. I’ve created a product issue on this. Please see: https://ecosystem.atlassian.net/browse/ACJIRA-1973 . Can you please add affected instances and other modules that you’re affected with.

Cheers,
Anne