When an array of objects is rendered using the table format and contains a boolean property with the checkbox format the boolean property should get a checkbox in the table.
Actual behavior
The bootstrap4 theme behaves as expected, but the spectre theme results in no checkbox.
Steps to reproduce the behavior
The following schema can be used to reproduce the issue:
I believe this happens since the checkbox does not have a label when rendered in a table, and spectreTheme.getFormControl() does not have a branch that handles checkboxes without a label. However, fixing that still results in inconsistent styling on the checkbox. In other words, a checkbox rendered in the table has a different style than one rendered outside the table.
General information
Expected behavior
When an array of objects is rendered using the table format and contains a boolean property with the checkbox format the boolean property should get a checkbox in the table.
Actual behavior
The bootstrap4 theme behaves as expected, but the spectre theme results in no checkbox.
Steps to reproduce the behavior
The following schema can be used to reproduce the issue:
Speculation on cause
I believe this happens since the checkbox does not have a label when rendered in a table, and
spectreTheme.getFormControl()
does not have a branch that handles checkboxes without a label. However, fixing that still results in inconsistent styling on the checkbox. In other words, a checkbox rendered in the table has a different style than one rendered outside the table.