[Vuejs]-Assign null but still remains old value in vue js v-text-field

1πŸ‘

βœ…

it’s probably because you change a value in a nested state and change the data type of this field. vue does not like that. you either have to keep it a string or you can explicitly force reactivity like this:

Vue.set(this.fields, 'name', null);

or access $set on the vue component with same syntax

this.$set(this.fields, 'name', null);
πŸ‘€oshell

Leave a comment