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
Passing the Link component from react-router-dom to as prop of Button component, print a warning on Browser console.
Warning: Failed prop type: Invalid prop as supplied to ForwardRef(Button).
Typechecking on "as" prop for Button Component should also expect a elementType.
Currently if as prop can be only a function or a string.
as: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
What browser are you working in?
Chrome
What version of the Carbon Design System are you using?
10
Add labels
component: button
label:"component: button"
The text was updated successfully, but these errors were encountered:
t-soares
changed the title
Typechecking on "as" prop for Button Component should also expect a elementType
Typechecking on "as" prop for Button Component should also expect an elementType
Dec 16, 2019
What package(s) are you using?
carbon-components
carbon-components-react
Detailed description
Passing the Link component from react-router-dom to as prop of Button component, print a warning on Browser console.
Warning: Failed prop type: Invalid prop
as
supplied toForwardRef(Button)
.Typechecking on "as" prop for Button Component should also expect a elementType.
Currently if as prop can be only a function or a string.
as: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
Add labels
component: button
label:"component: button"
The text was updated successfully, but these errors were encountered: