Open jchive opened 6 years ago
same problem~
I have a similar problem, but inverse.
Not Work:
<select class="select" onChange={this.onCity} v-model={this.client.city_id} >
Work:
<select class="select" v-model={this.client.city_id} onChange={this.onCity} >
No error are throwed.
I'm currently rewriting this plugin in nickmessing/jsx repo and it will attempt to mirror vue-template-compiler 1 on 1
I'm adding events to an input inside a component, specifically like the following
But I receive an error in the console
The keypress event is not fired in the component.
If I change it to be
Then the event is called.
In both cases
this.value
is correctly bound to the value of the input.The error is coming from the babel-helper-vue-jsx-merge-props mergeJSXProps function, so I initially raised an issue there, but am raising an issue here as it is only happening when the v-model attribute is being used.
This also effects other events, such as click and move events, if they are placed after the v-model attribute, the exception will occur.