Skip to content

Commit 8dc16cd

Browse files
committed
Fix issues to support running inside a higher version of om/clojurescript/sablono. 0.39
1 parent f2fdbc9 commit 8dc16cd

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

���project.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(defproject org.clojars.intception/om-widgets "0.3.38"
1+
(defproject org.clojars.intception/om-widgets "0.3.39"
22
:description "Widgets for OM/React"
33
:url "https://github.com/orgs/intception/"
44
:license {:name "Eclipse Public License"

‎src/om_widgets/datepicker.cljs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,11 @@
222222
;; next month
223223
(dom/th #js {:className "next"
224224
:onClick (fn [e]
225-
(om/set-state! owner :date (time/plus date (time/months 1))))} ">")
226-
227-
;; datepicker body
228-
(apply dom/tr nil
229-
(om/build-all day-header days-short))
230-
(om/build weeks-component app {:state {:path path :date date :onChange onChange}}))))))))
225+
(om/set-state! owner :date (time/plus date (time/months 1))))} ">")))
226+
;; datepicker body
227+
(apply dom/tr nil
228+
(om/build-all day-header days-short))
229+
(om/build weeks-component app {:state {:path path :date date :onChange onChange}}))))))
231230

232231
(defn datepicker
233232
"Datepicker public API

‎src/om_widgets/popover.cljs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353

5454

5555
(defn app-root []
56-
(sel1 "div [data-reactid]"))
56+
(or (sel1 "div [data-reactid]")
57+
(sel1 "div [data-reactroot]")))
5758

5859
(defn popover-overlay
5960
[_ owner]

‎src/om_widgets/textinput.cljs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@
397397
nil)
398398
:placeholder (:placeholder state)
399399
:disabled (:disabled state)
400-
:typing-timeout (:typing-timeout state)
400+
;:typing-timeout (:typing-timeout state)
401401
:type (condp = (:input-format state)
402402
"password" "password"
403403
"numeric" "number"
@@ -430,4 +430,4 @@
430430
(cond (= input-format "numeric") "right"
431431
(= input-format "integer") "right"
432432
(= input-format "currency") "right"
433-
:else "left"))}))}))
433+
:else "left"))}))}))

0 commit comments

Comments
 (0)