Skip to content

Computed properties context broken if prop with type array exist [TypeScript] #8421

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

Closed
ondrej-janosik opened this issue Jun 27, 2018 · 1 comment

Comments

@ondrej-janosik
Copy link

Version

2.5.16

Reproduction link

https://github.com/ondrej-janosik/vue-bug-props/blob/master/src/App.vue

Steps to reproduce

  1. Create a new project with VUE CLI, just add typescript
    image
  2. Open is VS code
  3. Create a property in data in App.vue
    image
  4. Access this property in a computed method - works
    image
  5. Add prop with type array
    image
  6. Computed property context is broken - not work
    image
  7. Change prop type to for example to object - works
    image

What is expected?

A computed property should have the same context even if prop with type array is presented

What is actually happening?

Computed property context is missing

@haoqunjiang
Copy link
Member

Duplicate of #8406 #6841
Please keep an eye on #6856 - we'll start merging pull requests soon.

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

No branches or pull requests

2 participants