-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR appears to be breaking tests. It also seems to reference a method that isn't guaranteed to exist? (componentClickHandler_
is created on MDCTemporaryDrawerFoundation
instances, but you're referencing it in MDCSlidableDrawerFoundation
; the former extends the latter, not the other way around.)
More importantly, though, I clearly notice a regression: now even when you click anywhere within the drawer in the Temporary Drawer demo, it immediately hides the drawer. Preventing this was what the stopPropagation
was doing before.
We can't simply remove the stopPropagation
call; we need to reimplement the behavior that stopPropagation
was accomplishing by other means. I suspect this would amount to checking in the current temporary drawer click handler whether the click actually came from the inner drawer element, and not closing the drawer if it did.
@kfranqueiro it seems that this PR was based off some work I did in my React lib. In my code, I do a check in the event path to see whether or not I should close it. @jonhue, take a look. https://github.com/jamesmfriedman/rmwc/blob/master/src/Base/withMDCDrawer.js#L36 |
CLAs look good, thanks! |
It should work as intended now. |
This should fix #225 as well. |
Codecov Report
@@ Coverage Diff @@
## master #1621 +/- ##
==========================================
- Coverage 99.62% 99.56% -0.06%
==========================================
Files 72 72
Lines 3439 3446 +7
Branches 420 424 +4
==========================================
+ Hits 3426 3431 +5
- Misses 13 15 +2
Continue to review full report at Codecov.
|
I'd love it, if this could be merged! |
Why doesn't this get merged? |
@kfranqueiro When can I expect the changes to be released? |
Our next release should be next Monday (we skipped one release cycle due to the holidays). |
Awesome, I'm looking forward to this one! It also seems like the temporary drawer is suffering from some animation issues on the newest iOS safari, but it could very likely be related to the hacky workaround I had to implement to fix this in RMWC. |
@amsheehan
Building on @jamesmfriedman 's proposal, I found that this solution is working for me.
Fixing #1619, #579