fix: prevent parent block duplicate

pull/896/head
Yukun Guo 2020-12-11 22:58:45 +08:00
parent 449c9d9e65
commit 04703b8056
1 changed files with 5 additions and 0 deletions

View File

@ -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))))