       (fn [{:keys [value on-change errors on-blur err-classes] :as props}]
         [:div
          [:input.re-input (merge (dissoc props :errors)
-                        {:type "text"
-                         :placeholder (:placeholder fmt-obj)
-                         :on-blur #(my-on-blur % on-blur)
-                         :on-change #(my-onchange % on-change)
-                         :value (:value @state)})]
+                                 {:type "text"
+                                  :placeholder (:placeholder fmt-obj)
+                                  :on-blur #(my-on-blur % on-blur)
+                                  :on-change #(my-onchange % on-change)
+                                  :value (:value @state)})]
          [:div {:class (apply str (interpose "." err-classes))}
           (when-let [local-errors (:errors @state)]
             (str/join "\n" (conj errors local-errors)))]])})))


      :reagent-render
      (fn [{:keys [with-dropdown value on-change errors on-blur err-classes] :as props}]
        [:div.date-input
         {:on-blur #(my-on-blur % on-blur)}
         [:input.re-input (merge (dissoc props :errors :with-dropdown :format)
                        {:type "text"
                         :placeholder (:placeholder fmt-obj)
                         :on-focus #(swap! state assoc :dropdown-visible true)
                         :on-change #(my-onchange % on-change)
                         :value (:value @state)})]
         (when (and with-dropdown (:dropdown-visible @state))
           [:div.calendar-dropdown
            [re-calendar

      :reagent-render
      (fn [{:keys [value on-change errors on-blur err-classes] :as props}]
        [:div
         [:div.date-input
          [:i.material-icons "schedule"]
          [:input.re-input (merge (dissoc props :errors)
                                  {:type "text"
                                   :placeholder (get placeholder fmt)
                                   :on-blur #(my-on-blur % on-blur)
                                   :on-change #(my-onchange % on-change)
                                   :value (:value @state)})]]
         [:div {:class (apply str (interpose "." err-classes))}
          (when-let [local-errors (:errors @state)]
            (str/join "\n" (conj errors local-errors)))]])})))
