You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are adding badges to tabs if there were any validation errors on that page. I created a component to handle the task but it causes the onChange event to stop firing.
This is not a v0.x issue.
I have searched the issues of this repository and believe that this is not a duplicate.
Expected Behavior
I would have thought wrapping the tab would have had no impact to the functionality.
In order to fix this I made IComponentProps extend TabProps and then spread the props over the tab. I'm guessing the component is cloned and it is having the onClick event handler set. Seems how it was not exposed it did not work. As such this might be expected behavior but I figured I would document it.
Tech
Version
Material-UI
v^1.1.0
React
v^16.3.2
Chrome
v68.0.3440.106
TypeScript
v2.8.4
The text was updated successfully, but these errors were encountered:
We are adding badges to tabs if there were any validation errors on that page. I created a component to handle the task but it causes the onChange event to stop firing.
Expected Behavior
I would have thought wrapping the tab would have had no impact to the functionality.
Steps to Reproduce
In order to fix this I made IComponentProps extend TabProps and then spread the props over the tab. I'm guessing the component is cloned and it is having the onClick event handler set. Seems how it was not exposed it did not work. As such this might be expected behavior but I figured I would document it.
The text was updated successfully, but these errors were encountered: