After updating to the latest version, conditional logic inside the Repeater field broke for table headers (<th>). When a sub-field's conditional logic hides a column, the corresponding <td> elements in the <tbody> correctly receive the .acf-hidden class and hidden attribute. However, the <th> elements in the <thead> remain completely visible. This causes the table headers and data columns to mismatch, severely breaking the layout of the admin UI.
Steps to reproduce:
Create an ACF Repeater field with a "Select" sub-field (e.g., source_type) and several other sub-fields that depend on its value (e.g., File, URL, Text fields).
Set up Conditional Logic on those dependent fields to hide/show them based on the selected option.
Open the post/page editing screen where this Repeater is located.
Toggle the select field. Notice that while the input cells (<td>) hide and show correctly, the table headers (<th>) stay visible at all times, causing the columns to shift layout.
Expected behavior:
The JS script should toggle the .acf-hidden class on both the table headers (<th>) and the table data cells (<td>) simultaneously, keeping the table layout consistent.
Actual behavior:
The <th> headers are ignored by the conditional logic script and remain visible, leaving empty headers over mismatched data columns.
Additional Information / Context
Environment:
WordPress Version: 7.0
ACF/ACF Pro Version: 6.8.5