Skip to content
Snippets Groups Projects
Commit 4d15cbcb authored by HJ's avatar HJ :fire:
Browse files

Merge branch 'from/develop/tusooa/1158-hidden-tabs' into 'develop'

Fix tab switcher not working when some tabs hidden

Closes #1158

See merge request !1511
parents 87311cff 3b02566e
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