applyChanges, if DatePane or not

This commit is contained in:
Mathieu Jaumotte 2021-09-20 12:26:17 +02:00
parent 75a240a2d6
commit 690f649dd1

View File

@ -378,12 +378,12 @@ export default {
} }
}, },
closeEditPane() { closeEditPane() {
this.applyChanges();
this.flag.editPane = false; this.flag.editPane = false;
console.log('step2: close the Edit Panel'); console.log('step2: close the Edit Panel');
if (!this.context.edit && this.useDatePane) { if (!this.context.edit && this.useDatePane) {
this.openDatePane(); this.openDatePane();
} else { } else {
this.applyChanges();
if (!this.options.forceRedirect) { if (!this.options.forceRedirect) {
this.openShowPane(); this.openShowPane();
} }
@ -394,6 +394,7 @@ export default {
console.log('step3: open the Date Panel'); console.log('step3: open the Date Panel');
}, },
closeDatePane() { closeDatePane() {
this.applyChanges();
this.flag.datePane = false; this.flag.datePane = false;
console.log('step3: close the Date Panel'); console.log('step3: close the Date Panel');
}, },