We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Navigating from a page (a tag) with an open dialog keeps the dialog open

The dialog should close if a new page component is rendered (navigated away from the page) but it stays open.

Is this a setting or is there a recommended way to close this on navigation?


4 Replies

MR Mallesh Ravi Chandran Syncfusion Team May 3, 2023 03:29 AM UTC

Hi Tony,

To resolve this issue, we suggest using the ShowAsync() and HideAsync() met

hods to open and close the dialog while navigating. If you still facing the issue , we request that you provide additional details about the issue, as mentioned below. This will help us validate the issue further and provide you with a better solution.

  • Issue a reproducible sample.
  • If possible, please share the video illustration.

API Reference- 

https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Popups.SfDialog.html#Syncfusion_Blazor_Popups_SfDialog_HideAsync


Regards,

Mallesh



TB Tony Basallo May 7, 2023 09:37 PM UTC

Yes, this is what is being done when the navigation event occurs. 

However, does this seem like the best behavior?

Is there a good argument to leave a modal/dialog open when navigating to a new page? 

Since seems to break all the known paradigms.



TB Tony Basallo June 17, 2023 03:53 AM UTC

Any thoughts on this?



MR Mallesh Ravi Chandran Syncfusion Team June 19, 2023 03:59 PM UTC

Hi Tony,

By default, the dialog should close when navigated away from the page. If you are facing an issue where the dialog is still maintained when navigating from another page, we request that you provide additional details about the issue as mentioned below. This will help us validate the issue further and provide you with a better solution.

  • Please provide a reproducible sample of the issue
  • If possible, share a video illustration.

Regards,

Mallesh


Loader.
Up arrow icon