@sprucelabs/spruce-calendar-components 22.4.7 → 22.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -52,10 +52,10 @@ export default class AbstractCalendarEventToolBeltState {
|
|
|
52
52
|
}
|
|
53
53
|
handleClickSave() {
|
|
54
54
|
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
-
yield this.deselectEvent();
|
|
56
55
|
const updates = this.pendingContextUpdates;
|
|
57
56
|
yield this.clearPendingContextChanges(false);
|
|
58
57
|
yield this.sm.updateContext(Object.assign({}, updates));
|
|
58
|
+
yield this.deselectEvent();
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
deselectEvent() {
|
|
@@ -43,10 +43,10 @@ class AbstractCalendarEventToolBeltState {
|
|
|
43
43
|
await registrar.fetchAndAddCards((id) => this.buildVcConstructorOptions(id));
|
|
44
44
|
}
|
|
45
45
|
async handleClickSave() {
|
|
46
|
-
await this.deselectEvent();
|
|
47
46
|
const updates = this.pendingContextUpdates;
|
|
48
47
|
await this.clearPendingContextChanges(false);
|
|
49
48
|
await this.sm.updateContext(Object.assign({}, updates));
|
|
49
|
+
await this.deselectEvent();
|
|
50
50
|
}
|
|
51
51
|
async deselectEvent() {
|
|
52
52
|
const { events } = this.sm.getContext();
|