fix: first block's content is not updated when pressing enter

between the content.
This commit is contained in:
Tienson Qin
2022-03-30 14:48:22 +08:00
parent b5b0c1e06b
commit c8e5ce3776

View File

@@ -544,9 +544,7 @@
(wrap-parse-block))
sibling? (when block-self? false)]
(outliner-insert-block! config current-block next-block {:sibling? sibling?})
;; WORKAROUND: The block won't refresh itself even if the content is empty.
(when block-self?
(gobj/set input "value" ""))
(util/set-change-value input fst-block-text)
(ok-handler next-block)))
(defn clear-when-saved!