diff --git a/contentcuration/contentcuration/frontend/channelEdit/components/edit/EditModal.vue b/contentcuration/contentcuration/frontend/channelEdit/components/edit/EditModal.vue index 24e43bf2c6..e9ce7e1d4a 100644 --- a/contentcuration/contentcuration/frontend/channelEdit/components/edit/EditModal.vue +++ b/contentcuration/contentcuration/frontend/channelEdit/components/edit/EditModal.vue @@ -29,7 +29,7 @@ :clipped-right="$isRTL" app > - + clear {{ modalTitle }} @@ -116,7 +116,7 @@ - + {{ $tr('finishButton') }} @@ -421,27 +421,35 @@ /* Button actions */ handleClose() { // X button action - this.enableValidation(this.nodeIds); - let assessmentItems = this.getAssessmentItems(this.nodeIds); - assessmentItems.forEach(item => (item.question ? (item[DELAYED_VALIDATION] = false) : '')); - this.updateAssessmentItems(assessmentItems); - // reaches into Details Tab to run save of diffTracker - // before the validation pop up is executed - if (this.$refs.editView) { - this.$refs.editView.immediateSaveAll().then(() => { - // Catch uploads in progress and invalid nodes - if (this.invalidNodes.length) { - this.selected = [this.invalidNodes[0]]; - this.promptInvalid = true; - } else if (this.contentNodesAreUploading(this.nodeIds)) { - this.promptUploading = true; - } else { - this.closeModal(); - } - }); - } else { - this.closeModal(); - } + this.selected = this.nodeIds; + this.$nextTick(() => { + this.enableValidation(this.nodeIds); + let assessmentItems = this.getAssessmentItems(this.nodeIds); + assessmentItems.forEach(item => + item.question ? (item[DELAYED_VALIDATION] = false) : '' + ); + this.updateAssessmentItems(assessmentItems); + + // reaches into Details Tab to run save of diffTracker + // before the validation pop up is executed + if (this.$refs.editView) { + this.$nextTick(() => { + this.$refs.editView.immediateSaveAll().then(() => { + // Catch uploads in progress and invalid nodes + if (this.invalidNodes.length) { + this.selected = [this.invalidNodes[0]]; + this.promptInvalid = true; + } else if (this.contentNodesAreUploading(this.nodeIds)) { + this.promptUploading = true; + } else { + this.closeModal(); + } + }); + }); + } else { + this.closeModal(); + } + }); }, /* Creation actions */