-
-
Notifications
You must be signed in to change notification settings - Fork 679
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
Unexpected v-model error #240
Labels
Comments
Thanks for posting this issue @KristofMorva ! I'll look into it :) |
Hi @michalsnik v-for="i in 4" v-model="numbers[`${i}`]"
Can you fix this case, please ? |
I've just encountered the same issue. Pseudo code : <div v-for="(kind, kindIndex) in ['shipping', 'billing']" :key="kindIndex">
<h3>{{ $t(`delivery.address.${kind}`) }}</h3>
<hr>
<address-component :address="$data[`${kind}Address`]"/>
<select v-model="$data[`${kind}Address`]">
<option v-for="(address, addressIndex) in addresses" :key="addressIndex" :value="address">
#{{ addressIndex }} {{ address.street }} {{ address.postcode }} {{ address.city }}
</option>
</select>
</div> |
Also experiencing the issue described in the two comments above. @michalsnik Should this issue be reopened, or a new one created? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
valid-v-model
throws an'v-model' directives cannot update the iteration variable 'x' itself
error, even if the iteration variable is not modified (3.14.0).For example, the following case works perfectly:
However, if we introduce a BinaryExpression, the error above will be produced:
I might be wrong, but I believe this construction should be allowed, as
The text was updated successfully, but these errors were encountered: