[GH-ISSUE #5403] [Bug] text duplicates on insert a block attribute #2403

Closed
opened 2026-03-23 21:22:07 +00:00 by mirror · 2 comments
Owner

Originally created by @CatHood0 on GitHub (May 23, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/5403

Originally assigned to: @LucasXu0 on GitHub.

Bug Description

The same of the title. When you type some random text, and, insert a block (on another line), if you go to an empty line (i just tested in empty lines) and writes something, will be writed the text from the last block inserted, and you letter.

Sorry for my bad english

How to Reproduce

  1. Append 3 new lines
  2. At last new line, put a block attribute (i just test this with headings and list)
  3. Write something in this block
  4. Select another empty line
  5. Just try to type a letter

Expected Behavior

Actual (it's valid with headings too):

listT

  • List

Expected:

T

  • List

Operating System

Android

AppFlowy Version(s)

0.5.8

Screenshots

With heading:

And yes, there's some error in selection, that forces selection to the index 0 instead just go to last as i want it

https://github.com/AppFlowy-IO/appflowy-editor/assets/114286961/21f79c37-c00b-497f-ac62-0cfc046c7b06

With list:

https://github.com/AppFlowy-IO/appflowy-editor/assets/114286961/0b4be1e5-b016-4e5e-9f64-fafbec35a4ec

Additional Context

No response

Originally created by @CatHood0 on GitHub (May 23, 2024). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/5403 Originally assigned to: @LucasXu0 on GitHub. ### Bug Description The same of the title. When you type some random text, and, insert a block (on another line), if you go to an empty line (i just tested in empty lines) and writes something, will be writed the text from the last block inserted, and you letter. _Sorry for my bad english_ ### How to Reproduce 1) Append 3 new lines 2) At last new line, put a block attribute (i just test this with headings and list) 3) Write something in this block 4) Select another empty line 5) Just try to type a letter ### Expected Behavior Actual (it's valid with headings too): listT * List Expected: T * List ### Operating System Android ### AppFlowy Version(s) 0.5.8 ### Screenshots ### With heading: _And yes, there's some error in selection, that forces selection to the index 0 instead just go to last as i want it_ https://github.com/AppFlowy-IO/appflowy-editor/assets/114286961/21f79c37-c00b-497f-ac62-0cfc046c7b06 ### With list: https://github.com/AppFlowy-IO/appflowy-editor/assets/114286961/0b4be1e5-b016-4e5e-9f64-fafbec35a4ec ### Additional Context _No response_
Author
Owner

@LucasXu0 commented on GitHub (May 24, 2024):

Hi, @CatHood0. I'm unable to reproduce it following your steps. Could you please check my video and see if there is anything missed?

https://github.com/AppFlowy-IO/AppFlowy/assets/11863087/ccfe5ff4-f83e-4ab2-a633-a490de8b96eb

<!-- gh-comment-id:2128342505 --> @LucasXu0 commented on GitHub (May 24, 2024): Hi, @CatHood0. I'm unable to reproduce it following your steps. Could you please check my video and see if there is anything missed? https://github.com/AppFlowy-IO/AppFlowy/assets/11863087/ccfe5ff4-f83e-4ab2-a633-a490de8b96eb
Author
Owner

@CatHood0 commented on GitHub (May 24, 2024):

It's strange, i do same steps, and get the issue again

https://github.com/AppFlowy-IO/AppFlowy/assets/114286961/236000ad-97f1-4961-897d-6cffaa432d42

<!-- gh-comment-id:2128365340 --> @CatHood0 commented on GitHub (May 24, 2024): It's strange, i do same steps, and get the issue again https://github.com/AppFlowy-IO/AppFlowy/assets/114286961/236000ad-97f1-4961-897d-6cffaa432d42
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#2403
No description provided.