I am using two methods called forceOpenSettings() and forceCloseSettings() to control the opening and closing of a collapsible section. These methods function properly when tested individually. However, I need them to be triggered based on a specific condition related to a b-tab with 4 tabs. When a tab is clicked, the collapse should open and when it becomes inactive, the collapse should close.
<b-tabs content-class="mt-3">
<b-tab title="First" active><p>I'm the first tab</p></b-tab>
<b-tab title="Second"><p>I'm the second tab</p></b-tab>
</b-tabs>
I have successfully implemented a similar functionality using @show and @hide in a b-collapse element.
<b-collapse role="tabpanel" @show="forceOpenSettings" @hide="forceCloseSettings">......</b-collapse>