This commit is contained in:
2019-04-03 23:13:16 +00:00
parent c450006448
commit 4de7ed8a88
3 changed files with 26 additions and 34 deletions

View File

@@ -78,8 +78,8 @@ export default {
},
watch: {
date() {
//this tortuous fuckery is required so that the input and change events only fire on a real change, not setup
//this tortuous fuckery is required so that the input and change events only fire on a real change, not initial page load
//also it shouldn't signal a change if the values are the same and nothing was effectively changed
var hasChanged = false;
if (this.oldDate != null && this.date != this.oldDate) {
hasChanged = true;