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

This commit is contained in:
charlie
2024-05-17 10:19:16 +08:00
parent 723a48d3da
commit cb6f977ed2

View File

@@ -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