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: find ref childComponent should be VueWrapper #267 #268

Merged
merged 1 commit into from
Dec 15, 2017

Conversation

aiankile
Copy link
Contributor

Fix for #267

Adjusted wrappers/wrapper.js:

  • find, findAll now check vm.$refs for a directly referenced Vue component, then return a VueWrapper
  • else standard vnode check is executed, returning Wrapper

Adjusted test mount/Wrapper/find.spec.js:

  • test with ChildComponent ref now tests agains VueWrapper

All tests pass, though I'm not sure if using $refs directly is ok (as it isn't used in other find-ref variants, instead going for vnodes...)

@eddyerburgh eddyerburgh merged commit 256086b into vuejs:dev Dec 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants