Skip to content

Commit a3a93e8

Browse files
committed
Fix datepicker problema building calendars with less than 6 weeks
1 parent 4f09f69 commit a3a93e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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.45"
1+
(defproject org.clojars.intception/om-widgets "0.3.46"
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
currrent-days (build-current-month-days date)
6161
next-days (build-next-month-days date)
6262
days (into [] (concat previous-days currrent-days next-days))]
63-
(subvec (mapv vec (partition 7 days)) 0 6)))
63+
(take 6 (mapv vec (partition 7 days)))))
6464

6565
(defn- day-header [day]
6666
(om/component

0 commit comments

Comments
 (0)