浏览代码

fix(mobile): can't edit code block in block sheet

Tienson Qin 2 月之前
父节点
当前提交
8be834c527
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/main/frontend/extensions/code.cljs

+ 1 - 0
src/main/frontend/extensions/code.cljs

@@ -478,6 +478,7 @@
                                (vreset! *cursor-prev nil))))
         (.on editor "focus" (fn [_e]
                               (when (and
+                                     (:block/uuid (state/get-edit-block))
                                      (contains? #{:code} (:logseq.property.node/display-type code-block))
                                      (not= (:block/uuid edit-block) (:block/uuid (state/get-edit-block))))
                                 (editor-handler/edit-block! (or code-block edit-block) :max {:container-id (:container-id config)}))