Skip to content

Commit

Permalink
fix: adding the verication to prevent the modal/contextual bar to clo…
Browse files Browse the repository at this point in the history
…se when it is an update
  • Loading branch information
AllanPazRibeiro committed Apr 8, 2024
1 parent 983e50f commit 453dd39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/meteor/app/ui-message/client/ActionManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 453dd39

Please sign in to comment.