I'm trying to implement a way to force the user to stay in the current tab if there are still unsumitted changes.
Googling around I've found that I should do something like this:
Add a handler to the "select" event
Define my handler
'Discard Pending changes?'
// Expected: stay in tab -> Result: tab changes anyway
But for some reason it's not working as expected.