Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 387 Bytes

forms.md

File metadata and controls

21 lines (15 loc) · 387 Bytes

Forms

Contents

Value reactivity

When updating an input value from props, sometimes it just doesn't work when the input is already "dirty"

We can use refs to orce the input to update

export default {
  watch: {
    value() {
      this.$refs.input.value = this.value;
    },
  },
};