Fixed FieldAdder works wrong inside <xf:dependent>

CMTV

Well-known member
Affected version
2.0.10
Hi!

Try to add the code below somewhere in ACP:
HTML:
<xf:checkboxrow>
    <xf:option>
        <xf:dependent>
            <ul class="listPlain inputGroup-container">
                <li class="inputGroup" data-xf-init="field-adder">
                    <xf:textbox />
                </li>
            </ul>
        </xf:dependent>
    </xf:option>
</xf:checkboxrow>

The bug is that the FieldAdder creates a clone inside init function and therefore the clone is not dynamically updated when switching the <xf:option which results in creating disabled fields:
bug.gif
 
Last edited:
Thank you for reporting this issue. The issue is now resolved and we are aiming to include that in a future XF release (2.0.12).

Change log:
Ensure FieldAdder handles Disabler elements correctly
Any changes made as a result of this issue being resolved may not be rolled out here until later.
 
Back
Top Bottom