From acc5ef68b28b1beb282809491c1ab24bed341f90 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Sat, 2 Mar 2024 21:28:02 +0100 Subject: [PATCH] Update create.action.ts --- .../partial-views/entity-actions/create/create.action.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/templating/partial-views/entity-actions/create/create.action.ts b/src/Umbraco.Web.UI.Client/src/packages/templating/partial-views/entity-actions/create/create.action.ts index 136a4241c5..b48b39fe05 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/templating/partial-views/entity-actions/create/create.action.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/templating/partial-views/entity-actions/create/create.action.ts @@ -7,11 +7,13 @@ export class UmbPartialViewCreateOptionsEntityAction extends UmbEntityActionBase if (!this.repository) throw new Error('Repository is not available'); const modalManager = await this.getContext(UMB_MODAL_MANAGER_CONTEXT); - modalManager.open(this, UMB_PARTIAL_VIEW_CREATE_OPTIONS_MODAL, { + const modalContext = modalManager.open(this, UMB_PARTIAL_VIEW_CREATE_OPTIONS_MODAL, { data: { parentUnique: this.unique, entityType: this.entityType, }, }); + + await modalContext.onSubmit(); } }