When clicking a SectionMessageAction
(tested with the latest “GA” version of @forge/react@10.1.0
) on a Jira adminPage module, a full page reload is triggered. This does not happen with Confluence globalSettings module that uses exactly the same UI code. See the below screencast:
I’ve put together a very simple Forge app to demonstrate the issue: GitHub - shushen/forge-sectionmessage-jira. The demo app has nothing more than the following from the bare-bone Forge demo app:
<SectionMessage
appearance="warning"
title="Warning Title"
actions={[
<SectionMessageAction
key={`warning-acknowledge-action`}
onClick={() => console.log("Action clicked")}
>
Acknowledge
</SectionMessageAction>,
]}
>
<Text>Warning message</Text>
</SectionMessage>
This breaks Jira apps user experience and could cause loss of unsaved in-browser data upon page reload. For example, we use SectionMessage
and SectionMessageAction
to provide guidance and warnings as users making changes to the app configuration.
I created an ticket ECOHELP-38917 two days ago to report this issue but it hasn’t seen any attention yet. Any help would be very much appreciated.
I really like to see this fixed promptly, otherwise we will be forced to move away from SectionMessageAction
, which really is a nice feature of the UIKit2.