Forge Custom UI: Calling view.close() in Modal also closes parent view (e.g. contentBylineItem)

Description

I am developing a Forge app using Custom UI.

The app is rendered in a parent view such as contentBylineItem, and from this parent view I open a modal using @forge/bridge.

Issue

When calling view.close() inside the modal, not only the modal itself is closed, but the parent view (for example, contentBylineItem) is also closed.

As a result, the parent view cannot receive any data returned from the modal.

This behavior was working correctly before and has only started occurring recently.

3 Likes

I wonder if it is a bug introduced as part of these recent changes? https://developer.atlassian.com/changelog/#CHANGE-3031

1 Like

Hi, @HanLe and @VickyHu can we investigate if this is a possible bug?

That sounds very plausible.This was working correctly until last week, and the issue was reported by users only recently.