Skip to content

Tabpanel optional args

Christina Jenks requested to merge tabpanel-optional-args into main

If the onTabChange prop isn't provided, the TabPanel is throwing an error because it's trying to invoke undefined as a function. This adds a small check, as onTabChange is supposed to be optional.

Boy howdy I am hoping we get to Typescript this soon 😩

Merge request reports