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(menu-surface): Fix anchorElement initialization #4462

Merged
merged 4 commits into from
Feb 28, 2019

Conversation

kfranqueiro
Copy link
Contributor

When Menu Surface was converted to TypeScript, its anchorElement field was initialized to null. This caused a regression, because any proper setup that occurred in initialSyncWithDOM was being steamrolled by this null initialization, because that occurs in constructor after super is called.

@codecov-io
Copy link

codecov-io commented Feb 28, 2019

Codecov Report

Merging #4462 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4462      +/-   ##
==========================================
- Coverage   99.05%   99.05%   -0.01%     
==========================================
  Files         130      130              
  Lines        6237     6235       -2     
  Branches      811      811              
==========================================
- Hits         6178     6176       -2     
  Misses         58       58              
  Partials        1        1
Impacted Files Coverage Δ
packages/mdc-menu-surface/component.ts 100% <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 88d8189...0e62876. Read the comment docs.

@mdc-web-bot
Copy link
Collaborator

All 627 screenshot tests passed for commit af1615d vs. master! 💯🎉

Copy link
Contributor

@acdvorak acdvorak left a comment

Choose a reason for hiding this comment

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

Two suggestions, otherwise LGTM!

test/unit/mdc-menu-surface/mdc-menu-surface.test.js Outdated Show resolved Hide resolved
test/unit/mdc-menu-surface/mdc-menu-surface.test.js Outdated Show resolved Hide resolved
@mdc-web-bot
Copy link
Collaborator

All 627 screenshot tests passed for commit 6d83014 vs. master! 💯🎉

@mdc-web-bot
Copy link
Collaborator

All 627 screenshot tests passed for commit 0e62876 vs. master! 💯🎉

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.

None yet

5 participants