[GH-ISSUE #8581] [Bug] Cannot insert block elements from '+' menu immediately after creating a new page #3927

Open
opened 2026-03-23 21:34:11 +00:00 by mirror · 1 comment
Owner

Originally created by @Tanhhhhtjy on GitHub (Mar 16, 2026).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/8581

Originally assigned to: @asjqkkkk on GitHub.

Bug Description

Description

When creating a new blank page and immediately opening the + block menu (or typing /), clicking on any block option (e.g., Table, Heading 3) silently fails. The dropdown menu closes, but no block element is inserted into the editor.

There are no error toasts or UI feedback. The user has to click away or press 'Enter' a few times to make the insertion feature work again. This feels like a race condition where the editor's UI is ready before the underlying document tree is fully initialized.

How to Reproduce

Steps to Reproduce

  1. Launch AppFlowy.
  2. Click + or Add a page in the sidebar to create a new Blank Page.
  3. Immediately focus on the first empty line.
  4. Click the + icon on the left (or type /) to open the block selection menu.
  5. Click on any block type (e.g., Table or To-do list).
  6. Observe that the menu disappears, but nothing is inserted.

Expected Behavior

Expected Behavior

The selected block element should be rendered into the document instantly, regardless of how quickly the menu is accessed after the page is created. If the document state is not yet ready, the UI should ideally disable the menu temporarily or show a loading state.

Operating System

Windows 10

AppFlowy Version(s)

v0.11.4

Screenshots

Image

Additional Context

No response

Originally created by @Tanhhhhtjy on GitHub (Mar 16, 2026). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/8581 Originally assigned to: @asjqkkkk on GitHub. ### Bug Description ### Description When creating a new blank page and immediately opening the `+` block menu (or typing `/`), clicking on any block option (e.g., Table, Heading 3) silently fails. The dropdown menu closes, but no block element is inserted into the editor. There are no error toasts or UI feedback. The user has to click away or press 'Enter' a few times to make the insertion feature work again. This feels like a race condition where the editor's UI is ready before the underlying document tree is fully initialized. ### How to Reproduce ### Steps to Reproduce 1. Launch AppFlowy. 2. Click `+` or `Add a page` in the sidebar to create a new Blank Page. 3. Immediately focus on the first empty line. 4. Click the `+` icon on the left (or type `/`) to open the block selection menu. 5. Click on any block type (e.g., `Table` or `To-do list`). 6. Observe that the menu disappears, but nothing is inserted. ### Expected Behavior ### Expected Behavior The selected block element should be rendered into the document instantly, regardless of how quickly the menu is accessed after the page is created. If the document state is not yet ready, the UI should ideally disable the menu temporarily or show a loading state. ### Operating System Windows 10 ### AppFlowy Version(s) v0.11.4 ### Screenshots ![Image](https://github.com/user-attachments/assets/f0172871-89f5-48dd-bcf3-fab5f71c6bea) ### Additional Context _No response_
Author
Owner

@richardshiue commented on GitHub (Mar 16, 2026):

Hi @Tanhhhhtjy, thanks for reporting this issue. I can reproduce it and will look to resolving it as soon as possible

<!-- gh-comment-id:4064904681 --> @richardshiue commented on GitHub (Mar 16, 2026): Hi @Tanhhhhtjy, thanks for reporting this issue. I can reproduce it and will look to resolving it as soon as possible
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#3927
No description provided.