Fixed XF.CheckAll no longer works as expected

Affected version
2.1.6

NixFifty

Well-known member
Seems like this change now means that a boolean is returned and has led to the following error:
Code:
Uncaught TypeError: $checkboxes.each is not a function
    at fn.updateState (form.js?_v=b9f32edd:1118)
    at fn.init (form.js?_v=b9f32edd:1101)
    at applyHandler (core.js?_v=b9f32edd:7567)
    at initializeElement (core.js?_v=b9f32edd:7639)
    at HTMLInputElement.<anonymous> (core.js?_v=b9f32edd:7687)
    at Function.each (jquery-3.3.1.min.js?_v=b9f32edd:2)
    at w.fn.init.each (jquery-3.3.1.min.js?_v=b9f32edd:2)
    at Object.initialize (core.js?_v=b9f32edd:7687)
    at Object.activate (core.js?_v=b9f32edd:2017)
    at HTMLDocument.onPageLoad (core.js?_v=b9f32edd:1009)
Can be reproduced with this:
HTML:
<xf:checkboxrow>
    <xf:option>option</xf:option>
    <xf:hint><br />
        <xf:checkbox standalone="true"><xf:option check-all="< .formRow" label="{{ phrase('select_all') }}" /></xf:checkbox>
    </xf:hint>
</xf:checkboxrow>
 
Top