Fixed XF.ExpandableContent has incorrect callback

DragonByte Tech

Well-known member
Affected version
2.3.2
I'm like 75% sure this diff is correct:

Diff:
Index: js/xf/core.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/js/xf/core.js b/js/xf/core.js
--- a/js/xf/core.js
+++ b/js/xf/core.js
@@ -9370,7 +9370,7 @@
         {
             XF.onDelegated(document, 'click', '.js-expandLink', e =>
             {
-                XF.Transition.addClassTransitioned(e.target.closest(containerSel), 'is-expanded', XF.layoutChange())
+                XF.Transition.addClassTransitioned(e.target.closest(containerSel), 'is-expanded', XF.layoutChange)
             })
 
             XF.on(window, 'resize', () => checkSizing(document), { passive: true })
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.3).

Change log:
Fix expandable content transition class callback
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom