-
Notifications
You must be signed in to change notification settings - Fork 123
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
The dropdown menu doesn't close after select #126
Comments
Hei @truonghungit I have the same issue, did you manage somehow to solve this ? |
I'm having the same issue, I noticed that it only happens when the control is mounted inside a <label>
<span>Country</span>
<ReactFlagsSelect
selected={selected}
onSelect={(code) => setSelected(code)}
/>
</label> It looks like that in this case when you click on an item, two click events are triggered, one in the list item and one in the button (even if it's nowhere near the mouse target). This triggers the correct <label onClick={e => e.preventDefault()}>
<span>Country</span>
<ReactFlagsSelect
selected={selected}
onSelect={(code) => setSelected(code)}
/>
</label> |
@ekwonye-richard can i work on it? |
Thank yo uvery much ! It works nice !! |
In my case preventDefault() does nothing :( |
Descriptions
I try to use the react-flags-select on reactstrap modal
The dropdown menu doesn't auto-close after selecting the item/clicking outside
The text was updated successfully, but these errors were encountered: