Track tasks and feature requests
Join 40 million developers who use GitHub issues to help identify, assign, and keep track of the features and bug fixes your projects need.
Sign up for free See pricing for teams and enterprisesAdd a way to prevent tabs switching #4273
Comments
This comment has been minimized.
This comment has been minimized.
I've though using v-model and verify if the form is saved and return to the tab if not, but if the tabs are "lazy" the component is destroyed and the form will be lost before you returned to the tab. |
This comment has been minimized.
This comment has been minimized.
You can set the For accessibility reasons, it is best to present the user with a disabled tab button than one that is clickable but doesn't do anything (as |
This comment has been minimized.
This comment has been minimized.
For convenience, I would like to alert my users that the form isn't saved and ask if they want to save/continue editing/discard changes and depending the choice they made, let them switch tabs. |
This comment has been minimized.
This comment has been minimized.
BootstrapVue |
Is your feature request related to a problem? Please describe...
I have a b-tabs with form in b-tab. If the form isn't saved before the tab is switch, I would like to prevent the tabs from switching to an other tab
Describe the solution you'd like
An event could be fired before changing the tab and preventDefault() or return false could stop the tab switching process