DragonByte Tech
Well-known member
- Affected version
- 2.3.0 RC4
Problem: If
The wrapper
Fix:
---
I don't know if this problem also affects other areas.
XF.DescLoader
returns only one parent HTML element, f.ex.
HTML:
<dl class="pairs pairs--columns pairs--fixedSmall pairs--customField" data-field="min_platform_version">
<dt>Minimum Platform Version</dt>
<dd>2.2.0</dd>
</dl>
<dl>
will be lost due to containerEl.innerHTML = html.innerHTML
in onLoad
, which causes the resulting display to look different. This line assumes multiple HTML elements were returned, such that they are wrapped in <div class="js-createdContainer">
.Fix:
Diff:
Index: js/xf/form.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/js/xf/form.js b/js/xf/form.js
--- a/js/xf/form.js
+++ b/js/xf/form.js
@@ -1274,7 +1274,14 @@
speed: XF.config.speed.fast,
complete ()
{
- containerEl.innerHTML = html.innerHTML
+ if (html.classList.contains('js-createdContainer'))
+ {
+ containerEl.innerHTML = html.innerHTML
+ }
+ else
+ {
+ containerEl.innerHTML = html.outerHTML
+ }
XF.Animate.fadeDown(containerEl)
},
})
---
I don't know if this problem also affects other areas.