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

Declaring kebab case defineModel name throws an error when binded #12060

Open
DamianGlowala opened this issue Sep 27, 2024 · 0 comments · May be fixed by #12063
Open

Declaring kebab case defineModel name throws an error when binded #12060

DamianGlowala opened this issue Sep 27, 2024 · 0 comments · May be fixed by #12063
Labels
🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. scope: v-model

Comments

@DamianGlowala
Copy link
Contributor

DamianGlowala commented Sep 27, 2024

Vue version

3.5.10

Link to minimal reproduction

https://play.vuejs.org/#eNp9UctOwzAQ/BVrLwGpJKDCpQpIgHoAiYeAoyWUJpvi1rEt2wmVqvw7a4c+VEFvuzOzq9mdNdwak3YtwgRyV1phPHPoW3PDlWiMtp6tmcWa9ay2umEJSZMtda8b84unWWjCJqLzbFhFS6jx2BhZeKSOsTzOLHFWzM7KwuE1Bw4sIy7P9oQwAu9KrWoxTxdOK7K3DuMcSpoXEu2L8UIrx2HCIhO4Qkr9/Rgxb1scbfDyC8vlH/jCrQLG4dWiQ9shhy3nCztHP9DT92dcUb0lG121ktRHyDd0WrbB4yC7a1VFtvd00e1D/KRQ8w83XXlUbnNUMBqUfdRzoM+G1/13+s7uOL2Mc1z19MVNKsfyrbAWCp90hfIgZ672uJNkF1tyejzlSnSxoNJJ7WPAVGcDfhj1Z4c2HE4mx+lVenEO/Q8MJNzx

Steps to reproduce

Observe the warning/error in SFC Playground.

What is expected?

Kebab case being a valid way to declare a name for defineModel.

What is actually happening?

Warning/error when I declare defineModel with kebab case name and bind data in parent component.

System Info

No response

Any additional comments?

No response

@edison1105 edison1105 added 🔩 p2-edge-case scope: v-model 🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. and removed 🔩 p2-edge-case labels Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. scope: v-model
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants