diff --git a/packages/survey-creator-core/src/components/tabs/translation.ts b/packages/survey-creator-core/src/components/tabs/translation.ts index 7cbfef6740..87d3095cc0 100644 --- a/packages/survey-creator-core/src/components/tabs/translation.ts +++ b/packages/survey-creator-core/src/components/tabs/translation.ts @@ -1425,7 +1425,7 @@ export class TranslationEditor { this.apply(); return true; }, - onCancel: () => { + onHide: () => { this.dispose(); }, cssClass: "sv-property-editor st-translation-dialog", @@ -1456,7 +1456,6 @@ export class TranslationEditor { if (this.onApply) { this.onApply(); } - this.dispose(); } public cancel(): void { this.dispose();