Questions tagged [v-model]

Use this tag for questions related to the v-model directive of Vue.js.

The v-model directive is used to create two-way data bindings on form input, textarea, and select elements. It automatically picks the correct way to update the element based on the input type. Although a bit magical, v-model is essentially syntax sugar for updating data on user input events. For more information: https://vuejs.org/v2/guide/forms.html#Modifiers

420 questions
4
votes
1 answer

Vuetify Text Field : Changes To Values Don't Persist (Lost on Blur or Focus)

Here is my code. See the tag. On keypress event, it intercepts and transforms the input value into something else if the textbox is full (insert the keypress character at the cursor and push the rest of the characters into the…
GeneC
  • 93
  • 2
  • 10
4
votes
1 answer

vue checkbox v-model binding not working properly in the current version

The following code is supposed to list a series of tasks according to their status of completion. It works just fine when I use a 2.5.xx Vue cdn link. However with the current version's cdn (>= 2.6.0), whenever I check/uncheck a task from either…
Flayshon
  • 363
  • 1
  • 5
  • 12
4
votes
0 answers

VueJS v-model for object prop through nested components doesn't make update them as expected

I'm developing an application form. The components tree of it: Application Form Fieldset Field The Application component has configuration props for the Form component called formSettings so that it passes them…
shpindler
  • 357
  • 2
  • 12
4
votes
1 answer

Dynamic `v-model` for computed properties - based on route param

I am building a component that can be used to set various vuex properties, depending on the name passed in the route. Here is the naive gist of it: