reactstrap icon indicating copy to clipboard operation
reactstrap copied to clipboard

If DropdownToggle is contains html element for example div then cannot close the dropdown if you click on it

Open NoBee86 opened this issue 2 years ago • 2 comments

The simple example:

<UncontrolledDropdown>
  <DropdownToggle>
    <div>Not close if you click here</div>
  </DropdownToggle>
  <DropdownMenu>
    <DropdownItem>Only one item</DropdownItem>
  </DropdownMenu>
</UncontrolledDropdown>

I use the 9.1.5 version! I checked the releases and as I see the 9.1.3 fix: Use the new nodeRef API for Collapse break it. (if I downgrade 9.1.2 this working fine) Thanks

NoBee86 avatar Mar 23 '23 14:03 NoBee86

Hello @NoBee86

I've encountered the same issue as you, with 9.1.5. I've updated to the latest version (9.1.8) and it works again. It is related to https://github.com/reactstrap/reactstrap/issues/2660

linsolas avatar Apr 07 '23 07:04 linsolas

Hello @NoBee86

I've encountered the same issue as you, with 9.1.5. I've updated to the latest version (9.1.8) and it works again. It is related to #2660

Thank you, I Will try it. 😊

NoBee86 avatar Apr 07 '23 12:04 NoBee86