Skip to content

Conversation

@MohammedTharikS
Copy link

Fixes #4889

This pull request resolves multiple issues related to incorrect cell value behavior during editing, specifically in unique columns and date/time columns. The previous behavior caused inconsistent validation, stale UI values, and formatting glitches when entering or exiting edit mode. This PR refactors cell-edit state handling to keep the UI, edit buffer, and row data fully in sync.

Technical details

Refactored how edit state is initialized, updated, and cleared.

Uniqueness validation is now consistently triggered every time a duplicate value is entered.

Fixed stale rendering where edited values remained visible after switching cells or refreshing.

Standardized sync between raw input, formatted display value, and underlying row data.

Date/time fields now correctly retain formatted display (“19:00”) after Escape, instead of reverting to original user input (“7:00 PM”).

Improved subscription behavior so cell state resets properly after sheet refresh.

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 repository’s style.

  • I added tests if applicable.

  • I added or updated documentation if applicable.

  • I ran the project locally and verified no visible errors.

@MohammedTharikS MohammedTharikS force-pushed the fix/cell-value-sync branch 4 times, most recently from 24a6d77 to a9308e7 Compare November 30, 2025 10:10
@Anish9901
Copy link
Member

Hey @MohammedTharikS, There are some issues with your PR that needs to be addressed before we can review it.

  • Add in-app video/screenshots for your changes
  • Fix failing tests in CI
  • Follow our PR template while writing PR descriptions

@Anish9901 Anish9901 marked this pull request as draft December 1, 2025 10:45
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.

Weird bugs with cell value state when editing

2 participants