Closed NARKOZ closed 6 years ago
This is obvious, your getter and setter is causing a infinite loop.
prettyDate: {
get () {
// you are watching v-model, but also updating prettyDate value
return moment(this.date).local().format(this.options.format);
},
set (value) {
// you are updating v-model, when you updates prettyDate value
this.date = moment(value).utc().format(this.options.format);
}
}
This component also watches v-model internally. What are you trying to achieve ?
Thanks.
I'm submitting a ... (check one with "x")
Tell about your platform
Current behavior
Tab freezes or crashes when changing a date.
Expected behavior
Minimal reproduction of the problem with instructions
https://jsfiddle.net/01407frf/558/