export default { template: ` `, props: { value: String, }, data() { return { inputValue: this.value, emitting: true, }; }, watch: { value(newValue) { this.emitting = false; this.inputValue = newValue; this.$nextTick(() => (this.emitting = true)); }, inputValue(newValue) { if (!this.emitting) return; this.$emit("update:value", newValue); }, }, methods: { updateValue() { this.inputValue = this.value; }, }, };