[GH-ISSUE #7287] [Bug] multiple cursors appear in a document with grid when you try to paste text in grid copied from document. #3231

Open
opened 2026-03-23 21:28:34 +00:00 by mirror · 0 comments
Owner

Originally created by @MayurSMahajan on GitHub (Jan 25, 2025).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/7287

Bug Description

If you try to copy something from the document page with an inline grid. And paste that content inside the grid cell, two cursors can be visible. And the text gets pasted only in the document.

How to Reproduce

  1. Open or Create a new document
  2. Insert a grid into the document
  3. Write something in the document and copy it, or copy something already written in the document.
  4. Paste it in one of the cells inside the grid. Using the paste shortcut ( if you paste by the context menu, then it works as expected )
  5. Observe that the content is not pasted inside the grid and nothing seems to happen
  6. Press the paste shortcut again and observe that the content gets pasted in the document and not in the grid. And at this point there are two cursors in the page.

Expected Behavior

Copied text should get pasted in the grid. Without two cursors appearing.

Operating System

MacOS 15.2 (24C101)

AppFlowy Version(s)

0.8.2

Screenshots

https://github.com/user-attachments/assets/5ecd8882-22b8-4d22-8596-b4739e79298f

Additional Context

If you paste by the context menu, then it works as expected
That is if you right click in the grid cell and then select paste option, then you can see the expected behavior.
Has to do something with the document's cursor service, not giving up focus when grid is selected.

Originally created by @MayurSMahajan on GitHub (Jan 25, 2025). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/7287 ### Bug Description If you try to copy something from the document page with an inline grid. And paste that content inside the grid cell, two cursors can be visible. And the text gets pasted only in the document. ### How to Reproduce 1. Open or Create a new document 2. Insert a grid into the document 3. Write something in the document and copy it, or copy something already written in the document. 4. Paste it in one of the cells inside the grid. Using the paste shortcut ( if you paste by the context menu, then it works as expected ) 5. Observe that the content is not pasted inside the grid and nothing seems to happen 6. Press the paste shortcut again and observe that the content gets pasted in the document and not in the grid. And at this point there are two cursors in the page. ### Expected Behavior Copied text should get pasted in the grid. Without two cursors appearing. ### Operating System MacOS 15.2 (24C101) ### AppFlowy Version(s) 0.8.2 ### Screenshots https://github.com/user-attachments/assets/5ecd8882-22b8-4d22-8596-b4739e79298f ### Additional Context If you paste by the context menu, then it works as expected That is if you right click in the grid cell and then select paste option, then you can see the expected behavior. Has to do something with the document's cursor service, not giving up focus when grid is selected.
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#3231
No description provided.