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
If the event of leaving a tab needs to be captured, the only way to do this at the moment is to check relatedTarget on show/shown events. A typical use-case would be checking if a form contained in a tab has unsaved changes to show a warning to the user when we switches to another tab. So instead of code like this:
If the event of leaving a tab needs to be captured, the only way to do this at the moment is to check
relatedTarget
on show/shown events. A typical use-case would be checking if a form contained in a tab has unsaved changes to show a warning to the user when we switches to another tab. So instead of code like this:we have to do something like this:
This also means that there's no way to only bind this once, because we emulate the leave event by checking the
relatedTarget
on show/shown.The text was updated successfully, but these errors were encountered: