Why @update:kebab-case compile different result on Codesandbox and Vue SFC Playground ?
Vue version
3.2.41
Link to minimal reproduction
Steps to reproduce
open link
What is expected?
@update:foo-bar
compile the same result
What is actually happening?
Vue SFC Playground: @update:foo-bar
=> onUpdate:fooBar
Codesandbox: @update:foo-bar
=> onUpdate:foo-bar
System Info
No response
Any additional comments?
is it bug?
I think codesandbox is using an outdated version of vue compiler. You should open an issue in Codesandbox repository
I think codesandbox is using an outdated version of vue compiler. You should open an issue in Codesandbox repository
I use the same version 3.2.41. and i have another question to ask, why v-model:foo-bar
not work when used with @update:foo-bar
, but if i change to v-model:fooBar
, they were all work. Intuitively, these two way should all work, right?
<demo v-model:foo-bar="modelVal" @update:foo-bar="update" />
compile result
<demo v-model:fooBar="modelVal" @update:foo-bar="update" />
compile result