-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
outside click on dialog modal does not dismiss it. #4541
Comments
I fix it, now pr |
|
@jasan-s you must be use |
@jasan-s is it working now? |
@stephenkingsley i'm using lated npm module for this lib. and it doesn't use es6 classes. I ll try to figure out how i can make those changes in that module. @mbrookes I tried using onTouchTap and it works fine for non-touch devices but on touch devices the tap registers twice, so the modal open and closes right away. that is why i stuck to just onCLick |
I did use react-tap-event-plugin, my issue is that I can dismiss the dialog when I set modal to false, but I can NOT dismiss it when set modal to true. It seems like to act as the opposite way according to the doc. |
http://www.material-ui.com/#/components/dialog We could argue the toss about whether that's the correct use of the term "modal", but the behaviour you describe matches the documentation. |
I think we can close this issue then |
i made a custom solution for this if anyone interested it worked for me without installing any addtional packages
|
Problem description
I can click ESC or click the OK(Flat button) and the modal dialog is dismissed however clicking on outside does not trigger onRequestClose. I have set the modal to false according to the docs. What I'm i doing wrong.
Steps to reproduce
Versions
The text was updated successfully, but these errors were encountered: