I’m using a confluence:contentAction app type and the Select element from ‘@forge/react’. This past week I started seeing an issue on my development app where selecting an option in the Select dropdown causes the contentAction modal to close automatically. I tried testing this on a minimal app deployment with the default select code only (manifest.yml and index.jsx below) and am seeing the same issue. Is anyone else seeing this? Is there a known issue with Select/contentAction (didn’t see anything recent in search) or any tips to troubleshoot?
Manifest:
modules:
confluence:contentAction:
- key: ebspimv2-hello-world-content-action
resource: main
resolver:
function: resolver
render: native
title: hello-world
function:
- key: resolver
handler: index.handler
resources:
- key: main
path: src/frontend/index.jsx
app:
runtime:
name: nodejs22.x
memoryMB: 256
architecture: arm64
id: [redacted]
index.jsx
import React, { useEffect, useState } from 'react';
import ForgeReconciler, { Text, Select } from '@forge/react';
import { invoke } from '@forge/bridge';
const App = () => {
const [data, setData] = useState(null);
useEffect(() => {
invoke('getText', { example: 'my-invoke-variable' }).then(setData);
}, []);
return (
<>
<Text>Hello world!</Text>
<Text>{data ? data : 'Loading...'}</Text>
<Select
appearance="default"
options={[
{ label: 'Apple', value: 'a' },
{ label: 'Banana', value: 'b' },
]}
/>
</>
);
};
ForgeReconciler.render(
<React.StrictMode>
<App />
</React.StrictMode>
);