[Bug]: Dropdown props.titleText is marked as optional in typescript but required in prop-types #17843
Closed
2 tasks done
Labels
component: dropdown
good first issue 👋
Used by GitHub to elevate contribution opportunities
hacktoberfest
See https://hacktoberfest.com/
severity: 4
https://ibm.biz/carbon-severity
type: bug 🐛
Package
@carbon/react
Browser
No response
Package version
1.68.0
React version
No response
Description
In typescript, the
titleText
prop is marked as optional while in the propTypes it's defined as required. This causes a warning in the console even if TS validation succeeds.carbon/packages/react/src/components/Dropdown/Dropdown.tsx
Line 222 in b543079
carbon/packages/react/src/components/Dropdown/Dropdown.tsx
Line 799 in b543079
Reproduction/example
Steps to reproduce
This passes TS validation but fails propTypes validation.
Suggested Severity
Severity 4 = Unrelated to a user task, has a workaround or does not need a workaround.
Application/PAL
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: