From 6b851dfc12f4cf617d02f683e0661feeebfbcf20 Mon Sep 17 00:00:00 2001 From: Jaseel-trenser <108331536+Jaseel-trenser@users.noreply.github.com> Date: Fri, 3 Jan 2025 21:27:05 +0530 Subject: [PATCH] fix(context menu): Implemented closing of context menu on outside click (#4627) Co-authored-by: Ibrahim <93064150+IbrahimCSAE@users.noreply.github.com> --- platform/core/src/services/UIDialogService/UIDialogService.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/core/src/services/UIDialogService/UIDialogService.ts b/platform/core/src/services/UIDialogService/UIDialogService.ts index 079a1943a..dd7acdaa0 100644 --- a/platform/core/src/services/UIDialogService/UIDialogService.ts +++ b/platform/core/src/services/UIDialogService/UIDialogService.ts @@ -36,6 +36,7 @@ class UIDialogService extends PubSubService { isDraggable = true, showOverlay = false, defaultPosition, + onClickOutside, }) { return this.serviceImplementation._create({ id, @@ -49,6 +50,7 @@ class UIDialogService extends PubSubService { isDraggable, showOverlay, defaultPosition, + onClickOutside, }); }