Tabs Component - onChange not firing

354
2
Jump to solution
04-13-2022 10:49 AM
ChrisCarter3
New Contributor III

Hoping someone has some advice on what I'm doing wrong, but I am struggling with something as simple as the onChange event on the Tabs control.

From the documentation and Storybook, I would expect this line to write the onChange event to the console:

<Tabs className="mt-4" type={"underline"} onChange={(evt) => { console.log(evt); }}>
 
But nothing happens, as if the onChange is never called. I also tried referring to another function with no luck.
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

@ChrisCarter3 

I don't see anything wrong with your code above. What version of EB are you using? There was some changes to the Tabs component in the last release I think. Your code above should work fine in EB 1.7

View solution in original post

2 Replies
RobertScheitlin__GISP
MVP Emeritus

@ChrisCarter3 

I don't see anything wrong with your code above. What version of EB are you using? There was some changes to the Tabs component in the last release I think. Your code above should work fine in EB 1.7

ChrisCarter3
New Contributor III

Yes that was the problem - I was still running EB 1.5. After upgrading to 1.8 it's working.

Thank you for the help, Robert.

0 Kudos