tleunen / react-mdl

React Components for Material Design Lite
https://tleunen.github.io/react-mdl/
MIT License
1.76k stars 255 forks source link

How to know if TextField is valid or not? #349

Closed golankiviti closed 8 years ago

golankiviti commented 8 years ago

Hi,

Maybe its obvious but I can't figure out how can I know if the TextField is valid or not after I've set a pattern.

tleunen commented 8 years ago

Hi @GolanPachu , the best way is to check the field yourself and set the error prop in case you want to show the error under the field.