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

Inject/Provide not working in Vue.extend() class. #6436

Closed
SpringNyan opened this issue Aug 23, 2017 · 0 comments
Closed

Inject/Provide not working in Vue.extend() class. #6436

SpringNyan opened this issue Aug 23, 2017 · 0 comments
Labels

Comments

@SpringNyan
Copy link

Version

2.4.2

Reproduction link

https://jsfiddle.net/50wL7mdz/55826/

Steps to reproduce

  1. Use Vue.extend() to create a subclass which contains provide option.
  2. Inject property in child component of subclass.

What is expected?

Property is injected correctly.

What is actually happening?

Property is not injected.


In src/core/util/options.js, Line 97-99. defaultData is set to undefined if parentVal is not a function. It may cause this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants