You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: