Skip to content

fix(Group): stop click event propagation to prevent selection reset#65

Merged
draedful merged 1 commit intomainfrom
fix/group-click-propagation
Apr 10, 2025
Merged

fix(Group): stop click event propagation to prevent selection reset#65
draedful merged 1 commit intomainfrom
fix/group-click-propagation

Conversation

@draedful
Copy link
Collaborator

Clicking on a Group component triggered its selection logic, but the event propagated to the camera component, which resets all selections on click. This caused the group selection to be immediately cleared.

Added event.stopPropagation() to the Group's click listener to prevent the event from reaching the camera and preserve the selection state.

Clicking on a Group component triggered its selection logic, but the event propagated to the camera component, which resets all selections on click. This caused the group selection to be immediately cleared.

Added event.stopPropagation() to the Group's click listener to prevent the event from reaching the camera and preserve the selection state.
@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@draedful draedful merged commit 7b438de into main Apr 10, 2025
4 checks passed
@draedful draedful deleted the fix/group-click-propagation branch April 10, 2025 15:23
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.

3 participants