Parcourir la source

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

charlie il y a 1 an
Parent
commit
8720236767
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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
      (shui/dropdown-menu-item
       {:key "delete"
       {:key "delete"
        :on-click #(do (editor-handler/delete-selection %)
        :on-click #(do (editor-handler/delete-selection %)
-                      (state/hide-custom-context-menu!))}
+                      (state/hide-custom-context-menu!)
+                    (shui/popup-hide!))}
 
 
       (t :editor/delete-selection)
       (t :editor/delete-selection)
       (shui/dropdown-menu-shortcut (ui/keyboard-shortcut-from-config :editor/delete)))
       (shui/dropdown-menu-shortcut (ui/keyboard-shortcut-from-config :editor/delete)))