Closed jendowns closed 4 years ago
Any idea why the warning does not throw when using our components rather than the security implementation?
https://codesandbox.io/s/stoic-mestorf-rsvux?file=/src/App.js
@tw15egan I'm not sure π€ it's not much of an implementation though. It's imported & exported here: https://github.com/carbon-design-system/ibm-security/blob/dev/src/components/Select/index.js
@tw15egan AH wait a second, we are on version 7.10.0 π I don't believe the error is present in 7.11.3 because it's been fixed since then π
Thanks for looking into this -- I'm going to close out this issue as I think we need to update on our end to stop seeing this error π
π phew! I was really hoping this was solved for good π
Detailed description
The
size
prop in theSelect
is not marked required, yet it does not have a default value.If you attempt to use
Select
without specifying a value for thesize
prop -- that is, if you are trying to use a regular-sizedSelect
-- you will get a lot of propType warnings in your developer console.Steps to reproduce
Just use
Select
in development, and don't pass it asize
value (as if you are trying to use a non small, non x-largeSelect
).See this example & view the console: https://codesandbox.io/s/agitated-sunset-cfvxs?file=/src/App.js