Comment buggy mouse enter to highlight

pull/10493/head
Tienson Qin 2023-11-03 01:45:47 +08:00
parent d34f036c4d
commit 1aae542204
1 changed files with 3 additions and 3 deletions

View File

@ -410,9 +410,9 @@
(handle-action :default state item)
(when-let [on-click (:on-click item)]
(on-click e)))
:on-mouse-enter (fn [e]
(when (not highlighted?)
(reset! (::highlighted-item state) (assoc item :mouse-enter-triggered-highlight true))))
;; :on-mouse-enter (fn [e]
;; (when (not highlighted?)
;; (reset! (::highlighted-item state) (assoc item :mouse-enter-triggered-highlight true))))
:on-highlight (fn [ref]
(reset! (::highlighted-group state) group)
(when (and ref (.-current ref)