-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deleting the previous empty block will cause current block deleted #8303
Labels
Comments
situ2001
changed the title
[Editor] Deleting an empty block will cause current block deleted
[Editor] Deleting an previous empty block will cause current block deleted
Jan 11, 2023
situ2001
changed the title
[Editor] Deleting an previous empty block will cause current block deleted
[Editor] Deleting the previous empty block will cause current block deleted
Jan 11, 2023
can reproduce in Linux |
I reproduced it on Windows. I think it is OS-independent. Jan.11th.2023.2023-01-11.12-56-51.mp4 |
@Bad3r This issue should be tagged with |
Here is the code handling backspace keydown when current cursor position is at 0. logseq/src/main/frontend/handler/editor.cljs Lines 2609 to 2615 in d36b06b
|
Bad3r
added
:type/bug
Something isn't working. Affects daily use.
and removed
os:macos
labels
Jan 11, 2023
Bad3r
changed the title
[Editor] Deleting the previous empty block will cause current block deleted
Deleting the previous empty block will cause current block deleted
Jan 11, 2023
Closed
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Search first
What Happened?
As the title mentioned, deleting a previous empty block by pressing backspace at cursor position
0
of the next of the previous block will cause current block deleted and the content of this block will be moved to previous block. Because of the behavior, all block-ref to this block will be invalid.Don't know if it is a feature or a bug.
Reproduce the Bug
The steps are presented at the following screen recording.
Expected Behavior
Should update all block-ref to this block when deleting previous empty block at the beginning of the next block of it. It is intuitive.
Screenshots
Kapture.2023-01-11.at.12.10.28.mp4
Desktop or Mobile Platform Information
App Version: 0.8.15
Git Revision: 2231919
Platform: Mozilla/5.0 (Macintosh Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML like Gecko) Logseq/0.8.15 Chrome/102.0.5005.167 Electron/19.1.8 Safari/537.36
Language: en-US
Additional Context
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: