From 453dd3991d9363eb85f80b47aabcb5deb7896ec6 Mon Sep 17 00:00:00 2001 From: AllanPazRibeiro Date: Mon, 8 Apr 2024 17:00:07 -0300 Subject: [PATCH] fix: adding the verication to prevent the modal/contextual bar to close when it is an update --- apps/meteor/app/ui-message/client/ActionManager.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/meteor/app/ui-message/client/ActionManager.ts b/apps/meteor/app/ui-message/client/ActionManager.ts index 81dbab027ff2b..9847e0d7dd7f9 100644 --- a/apps/meteor/app/ui-message/client/ActionManager.ts +++ b/apps/meteor/app/ui-message/client/ActionManager.ts @@ -89,7 +89,8 @@ export class ActionManager implements IActionManager { } finally { switch (userInteraction.type) { case 'viewSubmit': - if (!!interaction && interaction.type !== 'errors') this.disposeView(userInteraction.viewId); + if (!!interaction && !['errors', 'modal.update', 'contextual_bar.update'].includes(interaction.type)) + this.disposeView(userInteraction.viewId); break; case 'viewClosed': @@ -123,6 +124,7 @@ export class ActionManager implements IActionManager { } public handleServerInteraction(interaction: UiKit.ServerInteraction): UiKit.ServerInteraction['type'] | undefined { + console.log('🚀 ~ ActionManager ~ handleServerInteraction ~ interaction.type:', interaction.type); const { triggerId } = interaction; const appId = this.invalidateTriggerId(triggerId);