Răsfoiți Sursa

fix(ui): context dropdown menu not close for the delete selection action

charlie 1 an în urmă
părinte
comite
8720236767
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      src/main/frontend/components/content.cljs

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

@@ -62,7 +62,8 @@
      (shui/dropdown-menu-item
       {:key "delete"
        :on-click #(do (editor-handler/delete-selection %)
-                      (state/hide-custom-context-menu!))}
+                      (state/hide-custom-context-menu!)
+                    (shui/popup-hide!))}
 
       (t :editor/delete-selection)
       (shui/dropdown-menu-shortcut (ui/keyboard-shortcut-from-config :editor/delete)))