Browse Source

feat: allow mouseenter to change on-choosen

Peng Xiao 4 years ago
parent
commit
1cfddafdfe
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/main/frontend/ui.cljs

+ 1 - 0
src/main/frontend/ui.cljs

@@ -372,6 +372,7 @@
                     (menu-link
                       {:id            (str "ac-" idx)
                        :class         (when chosen? "chosen")
+                       :on-mouse-enter #(reset! current-idx idx)
                        :on-mouse-down (fn [e]
                                         (util/stop e)
                                         (if (and (gobj/get e "shiftKey") on-shift-chosen)