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(menuable): Enforce the check that $refs.content exist in sneakPeek #2721

Merged
merged 1 commit into from Dec 5, 2017

Conversation

Seraf
Copy link
Contributor

@Seraf Seraf commented Dec 5, 2017

If $refs.content is removed between sneakPeek being called and the animation frame fires, it becomes undefined in the callback.

Then it results with a Uncaught TypeError: Cannot read property 'style' of undefined

This fix ensure that $refs.content exists.

===
Thanks Kael for the help to debug it :-)

If $refs.content is removed between sneakPeek being called and the animation frame fires, it becomes undefined in the callback.

Then it results with a `Uncaught TypeError: Cannot read property 'style' of undefined`

This fix ensure that $refs.content exists.
@codecov
Copy link

codecov bot commented Dec 5, 2017

Codecov Report

Merging #2721 into master will increase coverage by 0.09%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2721      +/-   ##
==========================================
+ Coverage   68.04%   68.13%   +0.09%     
==========================================
  Files         116      116              
  Lines        3079     3079              
  Branches      987      986       -1     
==========================================
+ Hits         2095     2098       +3     
+ Misses        699      696       -3     
  Partials      285      285
Impacted Files Coverage Δ
src/mixins/menuable.js 92.5% <100%> (ø) ⬆️
src/components/VTimePicker/mixins/time-title.js 69.23% <0%> (-7.7%) ⬇️
src/components/VMenu/VMenu.js 100% <0%> (+13.79%) ⬆️

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 077a008...156cc92. Read the comment docs.

@KaelWD
Copy link
Member

KaelWD commented Dec 5, 2017

For future reference: 8792777

@KaelWD KaelWD added this to the v0.17.x milestone Dec 5, 2017
@johnleider johnleider merged commit 9df0881 into vuetifyjs:master Dec 5, 2017
@Seraf Seraf deleted the js-fix-mixin-menuable branch December 5, 2017 18:05
@lock
Copy link

lock bot commented Apr 15, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please direct any non-bug questions to our Discord

@lock lock bot locked as resolved and limited conversation to collaborators Apr 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants