[GH-ISSUE #5478] [Bug] Checklist exception on fast typing #2436

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

Originally created by @zoli on GitHub (Jun 5, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/5478

Originally assigned to: @appflowy on GitHub.

Bug Description

The problem is AppFlowy changes the task name with a delay (debounce), probably to prevent sending a lot of event to the backend. But on updating the task name with a delay it doesn't send text selection data (cursor offset) so the selection wont get sync with the text (task name) and sometimes the selection offset is grater than task name length which causes error.

How to Reproduce

  1. In Kanban view create a checklist field type
  2. Click on the add button to add a new task
  3. Start fast typing and you will see an error message and exception details in logs also the task height will grow suddenly.

Expected Behavior

Not seeing an exception.

Operating System

Linux

AppFlowy Version(s)

v0.5.8

Screenshots

No response

Additional Context

No response

Originally created by @zoli on GitHub (Jun 5, 2024). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/5478 Originally assigned to: @appflowy on GitHub. ### Bug Description The problem is AppFlowy changes the task name with a delay (debounce), probably to prevent sending a lot of event to the backend. But on updating the task name with a delay it doesn't send text selection data (cursor offset) so the selection wont get sync with the text (task name) and sometimes the selection offset is grater than task name length which causes error. ### How to Reproduce 1. In Kanban view create a checklist field type 2. Click on the add button to add a new task 3. Start fast typing and you will see an error message and exception details in logs also the task height will grow suddenly. ### Expected Behavior Not seeing an exception. ### Operating System Linux ### AppFlowy Version(s) v0.5.8 ### Screenshots _No response_ ### Additional Context _No response_
mirror 2026-03-23 21:22:21 +00:00
Author
Owner

@zoli commented on GitHub (Jun 5, 2024):

My initial solution is to remove didUpdateWidget but I'm not sure that it won't cause any side effect.

<!-- gh-comment-id:2149627984 --> @zoli commented on GitHub (Jun 5, 2024): My initial solution is to remove [`didUpdateWidget`](https://github.com/AppFlowy-IO/AppFlowy/blob/main/frontend/appflowy_flutter/lib/plugins/database/widgets/cell_editor/checklist_cell_editor.dart#L186-L193) but I'm not sure that it won't cause any side effect.
Author
Owner

@annieappflowy commented on GitHub (Jun 19, 2024):

Hi @zoli , this issue should be fixed in v0.6.0.

<!-- gh-comment-id:2178743679 --> @annieappflowy commented on GitHub (Jun 19, 2024): Hi @zoli , this issue should be fixed in[ v0.6.0](https://github.com/AppFlowy-IO/AppFlowy/releases/tag/0.6.0).
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#2436
No description provided.