Update Common.js
authorNicol <vingle@users.noreply.github.com>
Sat, 2 Dec 2023 13:05:02 +0000 (13:05 +0000)
committerGitHub <noreply@github.com>
Sat, 2 Dec 2023 13:05:02 +0000 (13:05 +0000)
Stop the accordion js from targetting <details><summary>

js/Common.js

index 852540fab88815ef2064782075477a7b36fab0f8..1b5c08f9d1a661150cf293996e30e30982c496cf 100644 (file)
@@ -1706,7 +1706,7 @@ if (!CRM.vars) CRM.vars = {};
         e.stopPropagation();
       })
       // Handle accordions
-      .on('click.crmAccordions', '.crm-accordion-header, .crm-collapsible .collapsible-title', function (e) {
+      .on('click.crmAccordions', 'div.crm-accordion-header, fieldset.crm-accordion-header, .crm-collapsible .collapsible-title', function (e) {
         var action = 'open';
         if ($(this).parent().hasClass('collapsed')) {
           $(this).next().css('display', 'none').slideDown(200);