-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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 outside to close Drawer with ES6 #4341
Comments
also have this problem |
Solution in stack overflow that was provided use ES5 mixins, any propositions with ES6? |
I tried to set docked property to false. it doesn't work and I don't understand why. |
I am also having this problem. Has anyone found a fix for this? |
I have found solution. Here a source code from Drawer.js that run when docked property is false : if Open property is true and no onRequestChange property method just return true. My solution: Where: |
@AndriiDidkivsky Your solution help me to to toggle Drawer. How do I get rid of this problem? I mean AppBar shifting a bit right while the Drawer is open. |
@sanjibnarzary As I can see this is because scrollbar at right side is disapear and content shift a bit right. Look at this point more detail. If you will find solution you can create pull request or open new issue. |
Only for reference since it was difficult for me find an answer there is the |
This no longer works? Borken?
|
just wanted to give an example of this using the beta version.
|
This solved my problem, and I also added the listener to the
|
Work for me without this way, just: |
Problem description
How to implement Click outside to close Drawer(or other popuped elements) with ES6
Steps to reproduce
Add component and try to click outside
Versions
We have found solutions here
The text was updated successfully, but these errors were encountered: