-
Notifications
You must be signed in to change notification settings - Fork 58
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
Heading block stops being rendered as a header when deleting the first word #3106
Comments
Hello @fluiddot, after the initial investigation I can say it's related not only with the header but generally with rich text (aztec). Please notice that first backspace press removes only the selected text style and then second press removes the selected text. The same happens in paragraph when you try to remove first styled word (bold or italic), however it doesn't remove the style layer visually but unselects toolbar buttons responsible for text styles. From the code perspective JS part is correct, looks like native changes are required. Text comes from I've checked the result of cc: @chipsnyder @hypest |
Reminds me of Aztec level issues indeed (see this one and this one for instance) where the issue stems from how Aztec-Android uses Spans to implement the rich-text functionality, deleting markup in the process when hitting backspace(s). We need to "go back to Aztec" and try to fix the various different writing flow issues that seem to have the same root cause, but until then I think it's fine to keep this ticket open but not actively working on it at the time being. |
Thanks for that analysis @lukewalczak. There is a lot of history on the heading block and deleting text at the start. I'll add dump of the related issues and PRs There have been a few issues in this area that might be related to why this one is occurring:
Related PRs:
|
👋 @fluiddot, I'm not able to reproduce this issue on |
Hey @tiagomar, I can still reproduce it in Screen_Recording_20230421_172917_Jetpack.mp4Tested on Samsung Galaxy S20 FE 5G (Android 13) - Simple site - Theme: Maus |
Hey, @fluiddot, that's interesting! Gboard vs Samsung Keyboard keyboards.mp4Tested on Samsung Galaxy Note 20 (Android 12) - Simple site - Theme: Maus |
Ah, good catch 🙇 . I'll update the issue's description with this information. |
FYI I am able to recreate this issue on a Pixel 6 using Hacker's Keyboard |
I was able to replicate this issue on a Samsung Galaxy S20 FE 5G, and noted some additional observations:
|
Describe the bug
While testing the writing flow, specifically the test case "Splitting and merging - TC002 - Merge after selection", I spotted that selecting and deleting the first word, the block stops being rendered as a header, instead it looks like a regular paragraph.
I managed to reproduce it also by selecting and deleting the first letter of the content.
To Reproduce
Steps to reproduce the behavior:
Backspace
key for deleting itNOTE: This issue can only be reproduced using the Samsung Keyboard (factory default). With the Gboard it works as expected.
Expected behavior
Heading block should be always rendered as a header (bigger font size and spacing).
Screenshots
heading-block-issue-android.mp4
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: