-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Conversation
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
All 627 screenshot tests passed for commit af1615d vs. |
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.
Two suggestions, otherwise LGTM!
All 627 screenshot tests passed for commit 6d83014 vs. |
All 627 screenshot tests passed for commit 0e62876 vs. |
When Menu Surface was converted to TypeScript, its
anchorElement
field was initialized tonull
. This caused a regression, because any proper setup that occurred ininitialSyncWithDOM
was being steamrolled by thisnull
initialization, because that occurs inconstructor
aftersuper
is called.