-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
v-bind:name not working when name attribute is present #6716
Comments
I want to add a bit more context, because at a first glance it doesn't make any sense to add both I'm using vue within a php framework, which is the responsible for rendering input elements, like this: <?= $this->Form->hidden('horarios.hora_inicio', [
':name' => '`horarios[${key}][hora_inicio]`',
':value' => 'item.horaInicio',
]) ?> So, while I can add the Finally, I was thinking about this and I guess this is not a bug, and likely is the expected behavior, but as it's different how it behaves in vue 2, it made me think it's a bug in the first place. |
Duplicate of #2059 |
The static attribute takes precedence but you can inverse the order or specify the |
Cool, thank you @posva and sorry for the duplicated issue, I searched before creating it, but I was searching wrong, I thought it only affected inputs... |
Vue version
3.2.39
Link to minimal reproduction
https://sfc.vuejs.org/#eNpFkL1OxEAMhF/FuAlIJBFtyJ1ER0VL4yYkTi6n7I/Wm0Mo2nfHm7uDzjMezSd7wzfvq8vK2GArfZh9BOG4+iPZ2XgXImwQeIQEY3AGCo0WZMn2zkoEIxMc8v6xeOdlcfDpwjI8FE+v98TwYzsz9x+d4VuS0LBINzFhjrX1FatAFZGNX7rIqgDa08tx23ZISm2tandn69cIWssHwqHLAyE0d+MfqO6lNG7gRX1tIdSCtv5j4DNebyxN56uzOKtf2DKDbgshbGB3sqe3Z014itFLU9cy9vl3Z6lcmGqdqrDaOBuuWEz5Fdy3cNBiwlyRyCZMv12nfyI=
Steps to reproduce
What is expected?
The input name to have the same value of the property binded.
What is actually happening?
It keeps the static name, ignoring completely v-bind:name
System Info
Any additional comments?
This was working on vue 2. (https://codesandbox.io/s/vue-2-playground-forked-4yus18?file=/src/App.vue)
The text was updated successfully, but these errors were encountered: