Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-92529

Clicking on an expand macro placed in a form causes a page reload

    XMLWordPrintable

Details

    Description

      Issue Summary

      Clicking on an expand macro placed in a confiForms registration form causes a page reload. The change in behaviour appears to have been introduced in Confluence 8.4.1 via this accessibility change - https://jira.atlassian.com/browse/CONFSERVER-79087

      This is reproducible on Data Center: (yes)

      Steps to Reproduce

      1. Install confiForms
      2. Create a simple page containing a confiForms registration form and add an expand macro inside the registration form.
      3. Save the page and click on the expand macro

      This storage format can be used to recreate a page that demonstrates the behaviour:

      <ac:structured-macro ac:name="confiform" ac:schema-version="1" ac:macro-id="90eeb674-5a44-46c6-8a90-5b0709207265"><ac:parameter ac:name="formName">form11</ac:parameter><ac:parameter ac:name="registrationFormTitle">test1</ac:parameter><ac:rich-text-body>
      <p><ac:structured-macro ac:name="confiform-field-definition" ac:schema-version="1" ac:macro-id="2f462596-1192-42fd-81fe-741cf3a5ffe7"><ac:parameter ac:name="fieldName">testfield1</ac:parameter><ac:parameter ac:name="fieldLabel">Test Field 1</ac:parameter><ac:parameter ac:name="type">text</ac:parameter></ac:structured-macro></p></ac:rich-text-body></ac:structured-macro>
      <p><br /></p>
      <p><br /></p><ac:structured-macro ac:name="confiform-entry-register" ac:schema-version="1" ac:macro-id="69a740d2-b45f-418f-bb26-430f6fbd1970"><ac:parameter ac:name="formName">form11</ac:parameter><ac:parameter ac:name="type">Embedded</ac:parameter><ac:rich-text-body>
      <p><ac:structured-macro ac:name="confiform-field" ac:schema-version="1" ac:macro-id="8c5dcb77-f423-40a3-8ece-be2cfd387066"><ac:parameter ac:name="fieldName">testfield1</ac:parameter></ac:structured-macro><br />This is a registration form</p><ac:structured-macro ac:name="expand" ac:schema-version="1" ac:macro-id="28d72a8d-5d19-40d5-a89d-0db345bacfb9"><ac:rich-text-body>
      <p>Expanded!</p></ac:rich-text-body></ac:structured-macro>
      <p>This is the bottom of the form</p></ac:rich-text-body></ac:structured-macro>
      <p><br /></p>
      

      Expected Results

      When clicking the expand macro it should expand and show the contents as it did in versions 8.4.0 and prior.

      Actual Results

      The expanded text is shown briefly before the page reloads.
      Screen Recording 2023-10-11 at 13.04.57.mov

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

      Attachments

        Activity

          People

            zxu2@atlassian.com Zac Xu
            7829eff5df87 Dean Norman
            Votes:
            5 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: