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

Fix tab switcher not working when some tabs hidden

See merge request 
This commit is contained in:
Tusooa Zhu 2022-04-10 03:51:11 +00:00
commit cdbab90093

View file

@ -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
}