On state change of panel bar would like to confirm user if they want to navigate and only if user confirms yes then change state. otherwise cancel state change event.
Is there any other way to achieve this?