Skip to content
Snippets Groups Projects
Unverified Commit 3b02566e authored by tusooa's avatar tusooa :zap:
Browse files

Fix tab switcher not working when some tabs hidden

parent 87311cff
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,7 @@ export default {
activeIndex () {
// In case of controlled component
if (this.activeTab) {
return this.slots().findIndex(slot => this.activeTab === slot.props.key)
return this.slots().findIndex(slot => slot && slot.props && this.activeTab === slot.props.key)
} else {
return this.active
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment