Skip to content

[Bug] Dissapearing text when trying to change the text into Code - v0.8.9 #7854

@kappafon

Description

@kappafon

Bug Description

When I type a text and select it then press backtikc key three times, the expectation is to wrap the text into code block, instead the text is gone. Then I press Ctrl + Z to undo and get the text back.
But if I go to another page and come back to the first one. The empty code block is back and the text is gone.

How to Reproduce

Write a text and select the whole block, then type triple backticks fast ``` to turn it into a Code block
- Text dissapears.
Press Ctrl+Z to undo, to restore the text, and go to another document and come back here.
- The empty Code block is visible instead of the text.

Expected Behavior

Write a text and select the whole block, then type triple backticks fast ``` to turn it into a Code block
- Text is now inside the code block.
Press Ctrl+Z to undo, to restore the text, and go to another document and come back here.
- The text is still there and visible.

Operating System

Windows

AppFlowy Version(s)

v0.8.9

Screenshots

29.04.2025_10.03.58.mp4

Additional Context

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions