-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Closed
Description
Version
2.5.0
Reproduction link
https://jsfiddle.net/skagami/b3tkrpmv/2/
Steps to reproduce
- click on the radio element, and no console output
- change vue version to 2.4.4, click on the radio again, and voila the console output
What is expected?
vue can handle the event on the input element
What is actually happening?
vue dose not handle this event
The render()
part is modified from compiled code with vue@2.4.x from element-ui's radio-button component
It seems that the compilation for v-model for this component has changed between vue@2.4.4 and vue@2.5.0
consider a simplified template:
<input type="radio" v-model="value" :value="foobar" >
with vue-template-compiler@2.4.4
the output is:
render: 'with(this){return _c(\'input\',{directives:[{name:"model",rawName:"v-model",value:(value),expression:"value"}],attrs:{"type":"radio"},domProps:{"value":foobar,"checked":_q(value,foobar)},on:{"__c":function($event){value=foobar}}})}',
with vue-template-compiler@2.5.0
, the event name changes:
render: 'with(this){return _c(\'input\',{directives:[{name:"model",rawName:"v-model",value:(value),expression:"value"}],attrs:{"type":"radio"},domProps:{"value":foobar,"checked":_q(value,foobar)},on:{"change":function($event){value=foobar}}})}',
I don't know if this is a feature, or the template is not correctly written.
Metadata
Metadata
Assignees
Labels
No labels