Skip to content

Unify the behavior around backspacing iOS lists and quotes - #194

Merged
szydlovsky merged 3 commits into
mainfrom
@szydlovsky/lists-quote-behavior-unification
Oct 7, 2025
Merged

szydlovsky merged 3 commits into
mainfrom
@szydlovsky/lists-quote-behavior-unification

Conversation

@szydlovsky

@szydlovsky szydlovsky commented Oct 7, 2025

Copy link
Copy Markdown
Collaborator

Previous PRs brought a bit of mayhem to lists and quotes on iOS in terms of their behavior consistency;

  • the added utils that removed styles when all characters of a line were removed messed with the fact that lists and quotes shouldn't do that. A zero width space should appear there. Added a check in these utils for these styles.
  • after fixing the above, zero width spaces still didn't appear in the first line because empty input "reset attributes" check was running first. Changed their order.
  • cleaned up and fixed the logic for handling backspaces within lists. Now backspace that is visibly done on the list/quote marker only removes style, keeping the whole line intact
  • also fixed one edge case to the above behavior, which resulted in the style being removed because the attributes magically weren't preserved

@szydlovsky
szydlovsky requested a review from exploIF October 7, 2025 10:03
@szydlovsky
szydlovsky merged commit 80a7d81 into main Oct 7, 2025
5 checks passed
@szydlovsky
szydlovsky deleted the @szydlovsky/lists-quote-behavior-unification branch October 7, 2025 10:17
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.

2 participants