2.5.13
https://jsfiddle.net/wa3t63gy/
select all the text in the text input, and then press backspace to delete it.
the text inside input should be deleted
the text inside input should be deleted, but restored immediately
not only the deletion, but also the modification will be reset, if it's the first modification
Issues are for bug reporting. You can ask questions on the discord or forums.
Props are read-only, and you are trying to mutate yours with v-model. Thus if you change the input value, the prop is not modified and the value is restored on the next update.
Use a data property or a computed setter instead:
computed: {
propModel: {
get () { return this.prop },
set (value) { this.$emit('update:prop', value) },
},
},
Most helpful comment
Issues are for bug reporting. You can ask questions on the discord or forums.
Props are read-only, and you are trying to mutate yours with
v-model. Thus if you change the input value, the prop is not modified and the value is restored on the next update.Use a data property or a computed setter instead:
Computed setters
Prop .sync modifier