react-bootstrap icon indicating copy to clipboard operation
react-bootstrap copied to clipboard

PropTypes of wrapped uncontrollable components to not bubble up

Open ericvergnaud opened this issue 4 years ago • 0 comments

Describe the bug

PropTypes such as componentClass property of DropdownButton are not visible. This prevents development tools from doing their job.

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://react-bootstrap-v3.netlify.app/components/dropdowns/
  2. Scroll down to page bottom
  3. 'componentClass' is not in the list of DropdownButton props

Expected behavior

Since componentClass is a valid PropType inherited from Dropdown, it should show.

Additional context

It seems the issue relates to the use of uncontrollable.js, which only bubbles up designated PropTypes Not sure if the fix should take place in uncontrollable.js itself or in its usage.

ericvergnaud avatar Oct 03 '21 08:10 ericvergnaud