reagent-project / reagent-forms

Bootstrap form components for Reagent
339 stars 78 forks source link

:numeric not updating state #143

Closed camachom closed 6 years ago

camachom commented 6 years ago

Hi again!

I'm trying to use :numeric on an input filed. However, the resulting input tag is still labeled as text, and the state is not updated on-change. Something like this:

    [:input.form-control
     {:class class
      :validator error-handler
      :field :numeric
      :id id}]

If I change it back to text, it works fine. Let me know if you can reproduce.

yogthos commented 6 years ago

Thanks for the heads up, I'll try to take a look at this shortly.

yogthos commented 6 years ago

I pushed out a new version with the :numeric changed to an HTML 5 number input. Seems to be working as expected locally, let me know if it looks good.

camachom commented 6 years ago

Sorry for the delayed response. Yes, it worked really well for me. Thanks!