Skip to content

Commit bdd2c25

Browse files
committed
[daterange-dropdown] Fix passthrough args
1 parent 712d7bb commit bdd2c25

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/re_com/daterange.cljs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,8 @@
667667
{:name :no-clip? :required false :default true :type "boolean" :description "[daterange-dropdown only] when an anchor is in a scrolling region (e.g. scroller component), the popover can sometimes be clipped. When this parameter is true (which is the default), re-com will use a different CSS method to show the popover. This method is slightly inferior because the popover can't track the anchor if it is repositioned"}
668668
{:name :placeholder :required false :type "string" :description "[daterange-dropdown only] placeholder text for when a date is not selected."}
669669
{:name :width :required false :validate-fn string? :type "string" :description "[daterange-dropdown only] a CSS width style"}
670+
{:name :position-offset :required false :validate-fn number? :type "integer" :description "[daterange-dropdown only] px horizontal offset of the popup"}
671+
{:name :body-footer :required false :type "part" :description "[daterange-dropdown only] extra part added to the bottom of the dropdown"}
670672
{:name :position-offset :required false :validate-fn number? :type "integer" :description "[daterange-dropdown only] px horizontal offset of the popup"})))
671673

672674
(defn daterange-dropdown
@@ -688,7 +690,7 @@
688690
(reset! shown? false)
689691
(when on-change (on-change new-model)))
690692
passthrough-args (-> passthrough-args
691-
(dissoc :format :goog? :no-clip? :placeholder :width :position-offset)
693+
(dissoc :format :goog? :no-clip? :placeholder :width :position-offset :anchor-width :anchor-height :body-header :body-width :body-footer)
692694
(assoc :on-change collapse-on-select)
693695
(assoc :src (at))
694696
(merge {:hide-border? true}))]

0 commit comments

Comments
 (0)