Skip to content
This repository has been archived by the owner on Jul 31, 2020. It is now read-only.

Multiple values for v-select #4

Open
VisiBoost opened this issue May 6, 2019 · 0 comments
Open

Multiple values for v-select #4

VisiBoost opened this issue May 6, 2019 · 0 comments

Comments

@VisiBoost
Copy link

Hello,

I'm using your form theme (SolidWorxVuetify/Form/fields.html.twig) wich works well for some pages but I have 2 troubles with v-select :

1/ First, you set the name attribute on the v-select element itself and also on the hidden field associated. It result to have values submitted 2 times when posting the form.
I correct that removing the "name" attribute on v-select and keeping it only on hidden field :
<v-{{ type }} :id="'{{ id }}'" .... on line 128

2/ I have troubles with multiple values, Symfony give me "Array to string conversion" error when rendering the form.
I try to tune your code using for exemple: value="{{ value | keys | join(', ') }}" and many others forms but without success, initial values are not selected when opening the combobox.

Vuetify docs is not really clear on how to initialize multiple values using inline HTML definition not from VueJS side.

Have you any ideas ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant