user3900456
user3900456

Reputation: 2003

react-bootstrap change active tab programmatically

I have a tab setup similar to this code. I need to change the active tab programmatically.

I'm trying to do like it is documented on bootstrap's official documentation but it doesn't work.

Upvotes: 2

Views: 1378

Answers (1)

Juni Brosas
Juni Brosas

Reputation: 1486

Try using the native javascript document.getElementById(tabId).click();.

Upvotes: 2

Related Questions