Closed AndreyChernykh closed 2 years ago
Latest commit: 6433795235769a2daf76f34d0ac99e796b7c5ed1
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Purpose 🚀
Make
internalHandleOnClick
andid
props optional.These props get added with a React.cloneElement() call and provide the necessary functionality to the items. Even though they're required for the component to work, the consumer doesn't provide them manually. So, they don't need to be flagged as required in the propTypes / type definitions.