-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Modal triggered from menu item issues #1106
Comments
Please provide a test case. You can fork the codepen in the issue template. |
@levithomason I have added the testcase. Thanks for your help! |
Ah, I see. The issue here is that the Modal is owned by the Menu. It actually doesn't matter where you click in the Modal, clicking anywhere (or taking any action) that closes the Menu causes it to unmount which causes the Modal to unmount. Also, in this case, it isn't actually the Menu that is at fault but the Popup that is containing the Menu. The solution here is going to be separating some of these concerns. I'd recommend moving the Modal higher in the tree, perhaps to the root of your view component, and controlling its |
Steps
Expected Result
The checkbox in the form of the modal should be clickable and not dismiss the modal upon click
Actual Result
Upon clicking on any part of the modal, the modal is closed
Version
0.63.4
Testcase
http://codepen.io/anon/pen/zNxXKo?editors=0010
The text was updated successfully, but these errors were encountered: