improve(ux): backspace for the empty order list block

pull/9141/head
charlie 2023-04-18 19:25:04 +08:00
parent 0449ee6bdc
commit 2887a9c56b
1 changed files with 3 additions and 1 deletions

View File

@ -2803,7 +2803,9 @@
(not root-block?)
(not single-block?)
(not custom-query?))
(delete-block! repo false)))
(if (own-order-number-list? block)
(remove-block-own-order-list-type! block)
(delete-block! repo false))))
(and (> current-pos 1)
(= (util/nth-safe value (dec current-pos)) (state/get-editor-command-trigger)))