How to avoid dropdown from closing when clicking inside the dropdown? #1448
Replies: 1 comment
-
@mejaz please add
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am using
tw-elements
in one of my react projects. While using the dropdown component, I don't want the dropdown to close if the user clicks inside it. I saw in the dropdown API section that we can usedata-te-autoclose='outside'
for my scenario, but it doesn't seem to be working. The dropdown closes even if I click inside or outside the dropdown.Below is my sample code:
Any idea what I am doing wrong?
Thank you for your time!!
Beta Was this translation helpful? Give feedback.
All reactions