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

enhance: right click dot should show custom menu when block selected

Tienson Qin 3 лет назад
Родитель
Сommit
f891e3d21f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/main/frontend/components/content.cljs

+ 1 - 1
src/main/frontend/components/content.cljs

@@ -359,7 +359,7 @@
                              (block-ref-custom-context-menu-content block block-ref))
                             (state/set-state! :block-ref/context nil))
 
-                          (state/selection?)
+                          (and (state/selection?) (not (d/has-class? target "bullet")))
                           (common-handler/show-custom-context-menu!
                            e
                            (custom-context-menu-content))