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: Events not being triggered on last element deselection #239

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

carlos-algms
Copy link

Fixes #238

This PR removes an if statement that blocked move and stop events from being triggered because there were no more selected elements.

Steps to reproduce:

  1. select elements by clicking or dragging a selection
  2. unselect and leave only 1 element
  3. click on that last element

Check the stop event containing no stored elements isn't triggered.

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.

Unselecting the last element doesn't trigger move and stop
1 participant