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

Can't process a prop with single letter #3187

Closed
hylin opened this issue Jun 30, 2016 · 0 comments
Closed

Can't process a prop with single letter #3187

hylin opened this issue Jun 30, 2016 · 0 comments

Comments

@hylin
Copy link

hylin commented Jun 30, 2016

Vue.js version

1.0.26

Reproduction Link

https://jsfiddle.net/hylin/jj2sn38p/

Steps to reproduce

  1. Use a hyphenated prop with single letter. eg. test-p-r-o-p="demo"
  2. There is no way to get the prop in child component

What is Expected?

A way to get hyphenated prop with single letter.

What is actually happening?

When camelize a prop like 'test-p-r-o-p', we get 'testPROP'.
Then hyphenate it, but we get 'test-prop'.
camelize & hyphenate function in lang.js should update to fix this case.

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

1 participant