-
-
Notifications
You must be signed in to change notification settings - Fork 47.3k
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
Click Menu item will close DropDown #12420
Comments
please refer this example: https://codepen.io/pen/?&editors=001 |
@picodoth Your example is empty. |
woops, my bad: https://codesandbox.io/s/k5v3yjzwrv |
Thanks! Been struggled for a long time. |
@picodoth New problem here. Click SubMenu will close SubMenu and DropDown, your solution didn't work in this case. |
@JHanLu |
@picodoth Thank u so much! I could have tried it. 😅 |
I have a problem. i set the input into dropdown , I used visible an onvisiblechange , it works, but i cant write anything in input !!!!!!!!!!!!!!!!!!!!!! |
Update 2021: Fix antd imports to
to get the codesandbox working |
this page doesn't work correctly man ) |
THis is empty |
Version
3.9.3
Environment
windows10, Chrome 62
Reproduction link
https://codepen.io/JHanLu/pen/YOmvGr?&editors=001
Steps to reproduce
I put a search input in Menu item in dropDown overlay, when I click the search input in menu, dropDown menu will be closed. When I do something like preventDefault in Menu, it show event.preventDefault is undefined.
What is expected?
I want to click the Menu without closing dropDown.
What is actually happening?
When I click the menu item, dropDown closed immediately.
The text was updated successfully, but these errors were encountered: