mirror of https://github.com/logseq/logseq
fix: prevent parent block duplicate
parent
449c9d9e65
commit
04703b8056
|
@ -645,6 +645,11 @@
|
|||
blocks-container-id (and blocks-container-id
|
||||
(util/uuid-string? blocks-container-id)
|
||||
(medley/uuid blocks-container-id))]
|
||||
|
||||
; WORKAROUND: The block won't refresh itself even if the content is empty.
|
||||
(when edit-self?
|
||||
(gobj/set input "value" ""))
|
||||
|
||||
(when ok-handler
|
||||
(ok-handler
|
||||
(if edit-self? (first blocks) (last blocks))))
|
||||
|
|
Loading…
Reference in New Issue