I need to handle back and promp to the user if he wants to go back without saving (happens that many users used to go back insted of save and I control if he type something )
Hi @pvtallulah, Yes but it’s not help me, because I need to control when they click .back , not while is doing the “back”.
I’m able to fix it, using a different class, instead of general .back, but I want to know why first it does the back event and after handle the .back onclick event if this is the one who fires it.
You can’t prevent default click handler. You need to add another class to this back link and add custom handler for this link, and inside of this handler you need to check required condition and call router.back() when required