Great idea to catch this event on route change !
Can it somehow be implemented if the route doesn’t change ? (For example when the form is inside of a modal)
If the user closes the modal by mistake, you could listen for that modal close event and if the form is considered dirty, warn the user at that moment.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great idea to catch this event on route change !
Can it somehow be implemented if the route doesn’t change ? (For example when the form is inside of a modal)
If the user closes the modal by mistake, you could listen for that modal close event and if the form is considered dirty, warn the user at that moment.