فهرست منبع

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

between the content.
Tienson Qin 3 سال پیش
والد
کامیت
c8e5ce3776
1فایلهای تغییر یافته به همراه1 افزوده شده و 3 حذف شده
  1. 1 3
      src/main/frontend/handler/editor.cljs

+ 1 - 3
src/main/frontend/handler/editor.cljs

@@ -544,9 +544,7 @@
                        (wrap-parse-block))
                        (wrap-parse-block))
         sibling? (when block-self? false)]
         sibling? (when block-self? false)]
     (outliner-insert-block! config current-block next-block {:sibling? sibling?})
     (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)))
     (ok-handler next-block)))
 
 
 (defn clear-when-saved!
 (defn clear-when-saved!