Skip to content
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

Value of selected item not updated/reacted on Vue data #78

Open
parthbhagat opened this issue Apr 30, 2019 · 0 comments
Open

Value of selected item not updated/reacted on Vue data #78

parthbhagat opened this issue Apr 30, 2019 · 0 comments

Comments

@parthbhagat
Copy link

Thank you for such a wonderful plugin for Vue.

I am using this component to search data from URL which returns JSON result. With the component, I observed that when I submit the form with axios ajax request the hidden field value is not been populated. It is not returning selected value to the server back, instead default value only. What I understood is, it is because of hidden field template. Currently hidden field template is:
<input :name="name" type="hidden" :value="value" />

Shouldn't it be something like:
<input v-model="name" type="hidden" />

I think current template is not understood by Vue as reactive html template for the hidden field and that is why value is not updated of name prop.

I am new to Vue, so please pardon me if my understanding is wrong and kindly correct it.

Thank you.

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

No branches or pull requests

1 participant