mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 09:26:28 +00:00
enhance: clear selection before closing popup
This commit is contained in:
@@ -838,8 +838,8 @@
|
||||
(shui/popup-show! e
|
||||
(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!))}
|
||||
{:on-hide state/clear-selection!
|
||||
:content-props {:class "w-[280px] ls-context-menu-content"}
|
||||
:as-dropdown? true}))
|
||||
|
||||
handled
|
||||
|
||||
Reference in New Issue
Block a user