You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Minor issue where the second line in an ordered list cannot be deleted #1417
There is a minor issue in the editor for version 2.0.2 where a block cannot be deleted using delete/backspace when a second line in an ordered list is created. Checked with 2.0.1 and confirmed that this issue was introduced in 2.0.2
Reproduce the Bug
Type the first line in a ordered list (like this one).
Press ENTER and type in the second line.
Now try to delete the second line using backspace. The ordered list returns to a bullet but the block cannot be deleted.
The behaviour persists until ESC or ENTER is pressed to remove focus or create a new line.
Expected Behavior
Hitting delete on the second line should delete the block and move the cursor to the end of the first line.
Screenshots
Snapzy_Recording_2026-10-09_21-28-08.mov
Desktop or Mobile Platform Information
The issue appears on the Desktop (macOS), iOS app, and test.logseq.com all under version 2.0.2
The issue did not appear on the macOS desktop version of 2.0.1
Additional Context
Checking the code with Claude pointed to line 2939 of src/main/frontend/handler/editor.cljs.
Bug: In an empty numbered-list block, the first Backspace removes the numbering, which is expected. But every Backspace after that tries to remove the numbering again, so the block never gets deleted.
Cause: delete-block-when-zero-pos! checks own-order-number-list? against :editor/block. That value is saved when editing starts, so it still has :logseq.property/order-list-type after the first Backspace removed it.
Fixed in logseq/logseq#13890 (fix(editor): collapse arrow, ordered-list Backspace, date picker Enter and selection bar actions). Its description has the cause and the test that pins it; it fails on current master and passes with the fix.
Activity
fix(editor): delete empty block after ordered-list backspace
yuxi-liu-wired commentedon Oct 27, 2026
Fixed in logseq/logseq#13890 (fix(editor): collapse arrow, ordered-list Backspace, date picker Enter and selection bar actions). Its description has the cause and the test that pins it; it fails on current master and passes with the fix.
fix(editor): delete an empty numbered block on the second Backspace
fix(editor): delete an empty numbered block on the second Backspace
fix(editor): delete an empty numbered block on the second Backspace
fix(editor): delete an empty numbered block on the second Backspace
fix(editor): delete an empty numbered block on the second Backspace
fix(editor): delete an empty numbered block on the second Backspace
fix(editor): delete an empty numbered block on the second Backspace
fix(editor): delete an empty numbered block on the second Backspace
fix(editor): delete an empty numbered block on the second Backspace
fix(editor): delete an empty numbered block on the second Backspace
fix(editor): delete an empty numbered block on the second Backspace
fix(editor): delete an empty numbered block on the second Backspace
fix(editor): delete an empty numbered block on the second Backspace
fix(editor): delete empty block after ordered-list backspace (#13658)
fix(editor): delete an empty numbered block on the second Backspace
fix(ui): align LUI desktop web UX with master (#14071)