فهرست منبع

fix: custom macro click issue

Peng Xiao 4 سال پیش
والد
کامیت
6fa50fd454
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      src/main/frontend/components/plugins.cljs

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

@@ -402,7 +402,8 @@
          #())
          #())
        [id])
        [id])
      [:div.lsp-hook-ui-slot
      [:div.lsp-hook-ui-slot
-      (merge opts {:id id})])))
+      (merge opts {:id id
+                   :on-mouse-down (fn [e] (util/stop e))})])))
 
 
 (rum/defc ui-item-renderer
 (rum/defc ui-item-renderer
   [pid type {:keys [key template]}]
   [pid type {:keys [key template]}]