Fixed XF.showOverlay() not working from template

Siropu

Well-known member
Affected version
2.3.0 RC 5
Code:
<xf:js>
    XF.showOverlay(XF.getOverlayHtml({title: 'my title', html: '<div>my html</div>'}));
</xf:js>

Screenshot from 2024-07-01 17-25-06.webp

Also as a side note, it would be great if you could pass multiple classes to the className of the options object.
 
As it turns out this is a legitimate bug, but RocketLoader tends to cause odd breakages on the whole so I'd be skeptical of it in any case.
 
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.0).

Change log:
Fix some issues with JS initialization
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom