⚡ If only 1 section set, then expand on load
This commit is contained in:
@@ -71,7 +71,11 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.openDefaultSection();
|
if (this.sections.length === 1) { // If only 1 section, go ahead and open it
|
||||||
|
this.openSection(0);
|
||||||
|
} else { // Otherwise, see if user set a default section, and open that
|
||||||
|
this.openDefaultSection();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user