Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chameleon-accordions behave unexpectedly when manually manipulated #301

Open
ryuhhnn opened this issue Feb 6, 2020 · 0 comments
Open

chameleon-accordions behave unexpectedly when manually manipulated #301

ryuhhnn opened this issue Feb 6, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@ryuhhnn
Copy link
Contributor

ryuhhnn commented Feb 6, 2020

Describe the bug
The logic in chameleon-accordions behaves unexpectedly if the slotted children are manually manipulated. This is due to the fact that indices for the slotted children are only assigned on first render. An event listener needs to be added in chameleon-accordions to recalculate the indices whenever the slotted children change: https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/slotchange_event

@ryuhhnn ryuhhnn added the bug Something isn't working label Feb 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant