Skip to content

Commit

Permalink
fix: can not write on journal page
Browse files Browse the repository at this point in the history
  • Loading branch information
tiensonqin committed Dec 15, 2024
1 parent 1a98dca commit ab73d4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/frontend/components/block.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -3181,8 +3181,8 @@
(block-drag-end event *move-to'))

(defn- block-mouse-over
[e *control-show? block-id doc-mode?]
(when-not @*dragging?
[e block *control-show? block-id doc-mode?]
(when-not (or @*dragging? (= (:block/uuid block) (:block/uuid (state/get-edit-block))))
(.preventDefault e)
(reset! *control-show? true)
(when-let [parent (gdom/getElement block-id)]
Expand Down Expand Up @@ -3407,7 +3407,7 @@
:on-touch-cancel (fn [_e]
(block-handler/on-touch-cancel *show-left-menu? *show-right-menu?))
:on-mouse-enter (fn [e]
(block-mouse-over e *control-show? block-id doc-mode?))
(block-mouse-over e block *control-show? block-id doc-mode?))
:on-mouse-leave (fn [_e]
(block-mouse-leave *control-show? block-id doc-mode?))}

Expand Down

0 comments on commit ab73d4b

Please sign in to comment.