I have a PCF that's hosted on a custom page that's navigated via a JS on D365 apps. I want to implement a prompt for dirty state and prevent closing the page. I was thinking about using session storage but how can I add a logic to the native close button of the page? Keep in mind that page runs in a modal window.
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.