Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Textfield is-invalid added on every change #277

Closed
mpolichette opened this issue Apr 1, 2016 · 1 comment
Closed

Textfield is-invalid added on every change #277

mpolichette opened this issue Apr 1, 2016 · 1 comment

Comments

@mpolichette
Copy link

Hey guys,

I just started using react-mdl, so i might not be using it correctly, let me know if that is the issue.

I'm attempting to use react-mdl with redux-form and r and so far it looks like they get along REALLY well. I'm actually surprised how easy this is. However, it appears that using the validation tools for redux-form causes Textfield to keep adding is-invalid on every re-render or basically every time focus or blur the field.

My code:
<Textfield label="Email" {...email} floatingLabel />
where email is just a redux form field specified by redux forms.

I endup with:
screen shot 2016-03-31 at 6 09 50 pm

I hope I've added enough information. Let me know if I can do more testing.

Thanks for making awesome stuff!
Matt

@tleunen tleunen added the bug label Apr 1, 2016
@tleunen
Copy link
Owner

tleunen commented Apr 1, 2016

Thanks for reporting the issue @mpolichette.

Good to know it works well with redux-form :) I'll make sure to fix the issue in the next version.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants