fix: clicking outside action bar hide it and display it again

This commit is contained in:
Tienson Qin
2025-03-08 14:01:51 +08:00
parent 5d2ab65d7c
commit 8803c09cfe

View File

@@ -750,8 +750,7 @@
(state/get-edit-input-id)
(= (shui-dialog/get-last-modal-id) :property-dialog)
(some-> (.-target e) (.closest ".ls-block"))
(some-> (.-target e) (.closest "[data-keep-selection]"))
(editor-handler/popup-exists? :selection-action-bar))
(some-> (.-target e) (.closest "[data-keep-selection]")))
(editor-handler/clear-selection!)))
(rum/defc render-custom-context-menu