Просмотр исходного кода

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 1 месяц назад
Родитель
Сommit
29cc192031
1 измененных файлов с 2 добавлено и 1 удалено
  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)])))]