Skip to content
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

fix(select): Only add line ripple listeners when line ripple is present #3470

Merged
merged 2 commits into from
Aug 29, 2018

Conversation

williamernest
Copy link
Contributor

Modifies the line ripple logic in the select to only add the event listeners or updates if the line ripple element exists.

@@ -287,7 +290,9 @@ class MDCSelect extends MDCComponent {
const targetClientRect = evt.target.getBoundingClientRect();
const xCoordinate = evt.clientX;
const normalizedX = xCoordinate - targetClientRect.left;
this.lineRipple_.setRippleCenter(normalizedX);
if (this.lineRipple_) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would never not be true since we're not hooking up the listener to this method if line ripple doesn't exist, right?

@mdc-web-bot
Copy link
Collaborator

All 349 screenshot tests passed for commit 0028c22 vs. master! 💯🎉

@mdc-web-bot
Copy link
Collaborator

All 349 screenshot tests passed for commit e0f75f3 vs. master! 💯🎉

@codecov-io
Copy link

codecov-io commented Aug 29, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@b10095f). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #3470   +/-   ##
=========================================
  Coverage          ?   98.42%           
=========================================
  Files             ?      119           
  Lines             ?     5021           
  Branches          ?      614           
=========================================
  Hits              ?     4942           
  Misses            ?       79           
  Partials          ?        0
Impacted Files Coverage Δ
packages/mdc-select/index.js 97.32% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b10095f...e0f75f3. Read the comment docs.

@williamernest williamernest merged commit 453b5c5 into master Aug 29, 2018
@williamernest williamernest deleted the fix/select/transform-origin branch August 29, 2018 21:15
adrianschmidt pushed a commit to Lundalogik/material-components-web that referenced this pull request Sep 25, 2018
@jamesmfriedman jamesmfriedman mentioned this pull request Sep 26, 2018
49 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants