Skip to content
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

[Super Editor Web BUG] -Inconsistent Tab Deletion Behavior on First Line and Between Nodes #2456

Open
isaacadariku opened this issue Dec 16, 2024 · 0 comments
Labels
type_bug Something isn't working

Comments

@isaacadariku
Copy link

When trying to delete a tab in certain scenarios, the behaviour is inconsistent:

  1. If the tab is at the beginning of the sentence and is on the first line, it cannot be deleted.
  2. When deleting a tab between nodes, the node itself is deleted, and its content is appended to the previous node instead of just removing the tab.

Package Version
super_editor, stable branch

User Info
Reflection.app

To Reproduce

  1. First-Line Tab Issue
  • Start with a sentence on the first line with a tab at the beginning.
  • Try to delete the tab with backspace.
  1. Between-Nodes Tab Issue
  • Place the cursor at the start of a node after a tab.
  • Press backspace or delete to remove the tab.

Actual behaviour

  • The tab at the beginning of the first line cannot be deleted.
  • Deleting a tab between nodes removes the node and appends its content to the previous node.

Expected behaviour

  • The tab at the beginning of the first line should be deleted.
  • Deleting a tab between nodes should only remove the tab without merging nodes.

Platform
Web (Chrome)

Flutter version
Flutter 3.24.4

Videos
https://github.com/user-attachments/assets/58bd4ff7-a8c5-4408-b10e-cd30a194f9ed

@isaacadariku isaacadariku added the type_bug Something isn't working label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type_bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant