File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- (defproject org.clojars.intception /om-widgets " 0.3.21 "
1
+ (defproject org.clojars.intception /om-widgets " 0.3.22 "
2
2
:description " Widgets for OM/React"
3
3
:url " https://github.com/orgs/intception/"
4
4
:license {:name " Eclipse Public License"
Original file line number Diff line number Diff line change 15
15
(defmulti build-entry (fn [entry app] (:type entry)))
16
16
17
17
(defmethod build-entry :entry
18
- [entry app ]
18
+ [entry owner ]
19
19
(reify
20
20
om/IRenderState
21
21
(render-state [this {:keys [channel] :as state}]
24
24
; ; onClick event, we use onBlur to close the dropdown
25
25
[:li (->> {:class (when (:disabled entry) " disabled" )}
26
26
(merge (when-not (:disabled entry)
27
- {:onMouseDown #(let [e (if (om/cursor? entry) @entry entry)]
27
+ {:onMouseDown #(let [e (if (om/cursor? entry) ( om/get-props owner) entry)]
28
28
(put! (:channel state) {:type :close-dropdown })
29
29
(put! channel {:type :entry-click
30
30
:value (:id e)
You can’t perform that action at this time.
0 commit comments