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

Overriding a binded prop with hypenated syntax instead of camelCase not working #8842

Closed
AMontagu opened this issue Sep 25, 2018 · 4 comments

Comments

@AMontagu
Copy link

AMontagu commented Sep 25, 2018

Version

2.5.17

Reproduction link

https://codesandbox.io/s/1zr10x8rpq

Steps to reproduce

  • Create two child components with the same prop in camelCase
  • Bind props from first child to second
  • Try to override camelCase prop in hypenated syntax from first child to second

What is expected?

Prop override correctly

What is actually happening?

Prop keep parent value


Meet this issue because I have a camelCase coding stye. But eslint vue-recommended throw an error if prop is not hypenated.

@Justineo
Copy link
Member

The sandbox seems to be working as expected. What is your expected result?

@AMontagu
Copy link
Author

The sandbox show 2 props overrided but only one is really overrided.
My expected result is the two props been overrided and showing : Working.

It's maybe a normal behavior of vue currently but as I said it's a bug if someone code in camelCase and use eslint vue-recommended

@AMontagu
Copy link
Author

Sorry my bad too fast at copy pasting on the sandbox. The sandbox now really show what I mean.

@yyx990803
Copy link
Member

Closed via #8845

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

No branches or pull requests

4 participants