Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
NoBee86 opened this issue Mar 23, 2023 · 2 comments

Comments

@NoBee86
Copy link

NoBee86 commented Mar 23, 2023

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

@linsolas
Copy link

linsolas commented Apr 7, 2023

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

@NoBee86
Copy link
Author

NoBee86 commented Apr 7, 2023

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. 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants