Przeglądaj źródła

enhance(ux): clear block selections instantly before closing the block context menu

charlie 1 rok temu
rodzic
commit
cb6f977ed2
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      src/main/frontend/components/container.cljs

+ 1 - 0
src/main/frontend/components/container.cljs

@@ -839,6 +839,7 @@
                         (fn [{:keys [id]}]
                           [:div {:on-click #(shui/popup-hide! id)} content])
                         {:content-props {:class "w-[280px] ls-context-menu-content"}
+                         :root-props {:onOpenChange #(when-not % (state/clear-selection!))}
                          :as-dropdown? true}))
 
                     handled