[Select]: size
prop defaults to empty string, but its propType does not allow that
#5471
Closed
1 of 2 tasks
Labels
What package(s) are you using?
carbon-components
carbon-components-react
Detailed description
In the latest
7.9.0
ofcarbon-components-react
, thesize
prop is set to an empty string by default:carbon/packages/react/src/components/Select/Select.js
Line 225 in c9f7e35
However, only
sm
andxl
are validsize
prop values:carbon/packages/react/src/components/Select/Select.js
Lines 211 to 215 in c9f7e35
So the default of the
size
prop violates the propTypes rules, and it generates errors wherever a "default"size
is used. (You can see this is you pull downmaster
/ the latest and run the React storybook environment).The text was updated successfully, but these errors were encountered: