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
The following PR, #6989, deprecated renderAnchor, suggesting an alternative renderButton to achieve the same result. However, the current state of the Tab component means that it is no longer possible for it to run cleanly with either prop without a warning.
What package(s) are you using?
carbon-components
carbon-components-react
Detailed description
The following PR, #6989, deprecated
renderAnchor
, suggesting an alternativerenderButton
to achieve the same result. However, the current state of the Tab component means that it is no longer possible for it to run cleanly with either prop without a warning.Using renderAnchor produces the deprecated warning.
https://codesandbox.io/s/festive-jones-i6x5k?file=/src/index.js
Using renderButton produces an unrecognised prop warning and also doesn't work
https://codesandbox.io/s/pensive-chatterjee-9mxnm?file=/src/index.js
If the intention is to rename renderAnchor to renderButton then the new prop should be available to use in PropTypes.
The text was updated successfully, but these errors were encountered: