Skip to content

Commit

Permalink
fix: prevent parent block duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
gyk committed Dec 11, 2020
1 parent 449c9d9 commit 04703b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/frontend/handler/editor.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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))))
Expand Down

0 comments on commit 04703b8

Please sign in to comment.