Merge branch 'from/develop/tusooa/1158-hidden-tabs' into 'develop'
Fix tab switcher not working when some tabs hidden Closes #1158 See merge request pleroma/pleroma-fe!1511
This commit is contained in:
commit
4d15cbcbbd
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ export default {
|
||||||
activeIndex () {
|
activeIndex () {
|
||||||
// In case of controlled component
|
// In case of controlled component
|
||||||
if (this.activeTab) {
|
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 {
|
} else {
|
||||||
return this.active
|
return this.active
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue