Skip to content

Conversation

@kamalakiruthi8
Copy link

Description

This PR fixes an issue where clicking on a different cell while a cell was in edit mode did not correctly switch selection.
The event listener has been adjusted to select the cell on pointerdown instead of waiting for later events.
This ensures consistent selection behavior, especially during active editing.

This pr Fixes #4892

Technical details
* Updated the logic in SheetDataCell.svelte to trigger selection earlier in the pointer lifecycle
*Ensures smooth transitions when moving between cells while editing
*Verified formatting, linting, and tests run successfully inside mathesar_service_dev

Checklist

My pull request has a descriptive title

My pull request targets the develop branch of the repository

My commit messages follow best practices

My code follows the established code style of the repository

I tried running the project locally in mathesar_service_dev

I ran npm run format, npm run lint, and npm test successfully in the dev container

@kamalakiruthi8 kamalakiruthi8 marked this pull request as draft December 6, 2025 16:12
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.

Exiting cell edit mode by clicking on another cell should select the second cell

1 participant