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

fix sl-selection-change event not emitted when all items are deselected #1038

Merged

Conversation

tao-cumplido
Copy link
Contributor

This fixes a bug introduced in #1030 where sl-selection-change would not emit when the new selection is empty. This is only possible with the multiple selection mode.

I also added more tests for asserting when the event should or should not be emitted.

@vercel
Copy link

vercel bot commented Nov 30, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
shoelace ✅ Ready (Inspect) Visit Preview Nov 30, 2022 at 10:40AM (UTC)

@claviska claviska merged commit 31e1f2f into shoelace-style:next Nov 30, 2022
@claviska
Copy link
Member

Thanks for adding tests! Much appreciated

@tao-cumplido tao-cumplido deleted the fix-tree-selection-change-empty branch November 30, 2022 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants