Skip to content

Conversation

@draedful
Copy link
Collaborator

@draedful draedful commented Feb 2, 2026

Do not call preventDefault when clicking on an anchor or block in ConnectionLayer.

Due to the fact that ConnectionLayer was listening to events on the graph and, when mousedown fired over anchor or block, was preparing to listen to further drag, it called preventDefault, which broke the blur event call on inputs.

Previously, preventDefault was called so that mousedown events on the camera would not be triggered and pan would not be triggered. Instead, I added stopGraphEventPropagation, which does the same thing in terms of graph behavior, but does not prevent the browser from processing events.

@draedful draedful marked this pull request as ready for review February 2, 2026 15:28
@draedful draedful requested a review from Antamansid as a code owner February 2, 2026 15:28
@draedful draedful changed the title fix: prevent preventing default behaviour on click on blur. fix: prevent preventing default behaviour on click on blur Feb 2, 2026
@gravity-ui-bot
Copy link
Contributor

Preview is ready.

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