Updating option in Select element crashes a Confluence contentAction module

XMLWordPrintable

    • Minor

      Issue Summary:

      When Using the Select component and selecting an option inside a Confluence contentAction module, the module just crashes / closes automatically. 

      According to reports, this used to work before.

      Steps to Reproduce

      1. Create a simple hello world app using the Confluence contentAction module using UI Kit
      2. Add a Select Element inside the Module
        1. 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>
          );
           

      3. Deploy and install the Forge app to your test instance.

      Expected Results

      The modal should remain open after an option is selected from the Select component.

      Actual Results

      The modal closes immediately after an option is selected

      Workaround

      As a workaround, users can utilize the keyboard to select an option without causing the modal to close. However, this approach may not perfectly meet all desired outcomes.

            Assignee:
            Unassigned
            Reporter:
            Sherica Ocbania
            Votes:
            8 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: