You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a dialog implemented which basically react to the url changes. e.g. ?showDialog=true would open the dialog while ?showDialog=false will close it. The main issue is now if the user uses browser back, the onHide is called. However in my close funciton I also modify the url params (update the history). So basically I want to be able to tell where the close event came from and adjust my logic based on the event origin.
melloware
added
Type: Bug
Issue contains a defect related to a specific component.
and removed
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
labels
Nov 5, 2024
Describe the bug
I have a dialog implemented which basically react to the url changes. e.g.
?showDialog=true
would open the dialog while?showDialog=false
will close it. The main issue is now if the user uses browser back, the onHide is called. However in my close funciton I also modify the url params (update the history). So basically I want to be able to tell where the close event came from and adjust my logic based on the event origin.Reproducer
No response
System Information
Steps to reproduce the behavior
No response
Expected behavior
Getting an event inside the callback https://primereact.org/dialog/#api.Dialog.callbacks.onHide
The text was updated successfully, but these errors were encountered: