auro-checkbox: checkbox group contents not controlled if children added after connectedCallback #20
Labels
released
Completed work has been released
Status: Work In Progress
Issue or Pull Request work is in Progress
Type: Bug
Bug or Bug fixes
Describe the bug
If child checkboxes are added to the checkbox-group after connectedCallback has run, the checkbox-group will not control the disabled/error state of these children.
This is especially an issue in Svelte, which first appends the group (calling connectedCallback), and then appends the children. At the time connectedCallback has run, the children are not in the DOM, so this.items is empty.
Related: AlaskaAirlines/auro-accordion#18
To Reproduce
Render the following markup in Svelte:
Inspect the child auro-checkbox. The disabled property is false.
Expected behavior
The component reacts to additional slotted checkboxes added after connectedCallback has run.
The text was updated successfully, but these errors were encountered: