Browse Source

fix: can't add a node link on a tag page with dropdown menu

fixes https://github.com/logseq/db-test/issues/557
Tienson Qin 3 months ago
parent
commit
29cc192031
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/frontend/components/views.cljs

+ 2 - 1
src/main/frontend/components/views.cljs

@@ -280,7 +280,8 @@
                                              :table? true
                                              :on-key-down
                                              (fn [e]
-                                               (when (= (util/ekey e) "Enter")
+                                               (when (and (= (util/ekey e) "Enter")
+                                                          (not (state/get-editor-action)))
                                                  (util/stop e)
                                                  (save-block-and-focus *ref set-focus-timeout! true)))}
                                             block)])))]