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

only emit tree selection change event when selection has changed #1030

Merged

Conversation

tao-cumplido
Copy link
Contributor

Fixes #1029

This adds a check before the sl-selection-change event is emitted, comparing the selection before and after syncing and only issues the emit when the selection actually did change.

@vercel
Copy link

vercel bot commented Nov 25, 2022

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

Name Status Preview Updated
shoelace ✅ Ready (Inspect) Visit Preview Nov 25, 2022 at 8:23PM (UTC)

@claviska claviska merged commit da6ae60 into shoelace-style:next Nov 28, 2022
claviska added a commit that referenced this pull request Nov 28, 2022
@tao-cumplido tao-cumplido deleted the fix-tree-selection-change branch November 29, 2022 13:25
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.

sl-selection-change on trees is emitted even when nothing has changed
2 participants