Skip to content

Cursor Unexpectedly Jumps to Another Cell When Editing Table Cells #2915

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

Open
RajeshKoram18 opened this issue Feb 26, 2025 · 3 comments
Open
Labels

Comments

@RajeshKoram18
Copy link

Description:
When editing table cells in editor.js, the cursor behaves unexpectedly when removing spaces at the end of a cell's content. Instead of staying in the current cell, it randomly jumps to another cell, disrupting the editing experience.

Steps to Reproduce:

  1. Create a table with 4 to 6 rows in editor.js.
  2. Fill in all cells with text.
  3. Add multiple spaces (e.g., "Text ") at the end of each cell.
  4. Randomly remove spaces using the Backspace key.
  5. Observe that the cursor unexpectedly jumps to a different cell.

Expected Behavior:

  • The cursor should remain in the current cell while removing spaces or characters.
  • The cursor should not jump to another cell unexpectedly when pressing Backspace.

Actual Behavior:

  • The cursor jumps to a different cell randomly when deleting spaces at the end of the text.

Environment:

  • Editor.js version: 2.30.7
  • Editor.js table version: 2.4.3

Additional Context:
This behavior disrupts the editing experience, making it difficult to modify text within a table. Ensuring the cursor remains stable in the current cell would improve usability.

Video attachment to reproduce the issue:
https://github.com/user-attachments/assets/4ed5e7b2-6962-4e9e-b493-d3de0664d672

@RajeshKoram18
Copy link
Author

@neSpecc
Copy link
Member

neSpecc commented Feb 28, 2025

PR: https://miniature-space-enigma-w4v5957jjjxcp4p.github.dev/

It is expected to see a regular PR link at this repo

@RajeshKoram18
Copy link
Author

RajeshKoram18 commented Feb 28, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants