I want to know which tab is active after the user switches a tab. I thought a variable set as :active-name should be changed, but it doesn't change. How can I tell the active tab?
Switch tab
activeTab is changed, and its tab name is logged to the console
The initial tab name is logged every time
Try this:
handleClick(e) {
console.log(e.name)
}
@wdmtech Thank you, it works!
Most helpful comment
Try this: