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 'before:selection:cleared' event in order to receive as target the whole activeSelection if present #5658

Merged
merged 3 commits into from
Apr 28, 2019

Conversation

asturur
Copy link
Member

@asturur asturur commented Apr 28, 2019

close #5616

I do not remember 100% why this decision was made before to return the first object of the eventual activeSelection.
That feels wrong anyway.

Needs tests since the change did not break any test right now.

@asturur asturur merged commit 06b0ca1 into master Apr 28, 2019
@asturur asturur deleted the fix-before-selection-cleared branch May 19, 2019 19:29
@asturur asturur mentioned this pull request May 19, 2019
thiagocunha pushed a commit to thiagocunha/fabric.js that referenced this pull request Nov 18, 2019
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.

Event before:selection:cleared doesn't receive the actual target
1 participant