UVASOMIT / metron

JavaScript convenience library and framework written in TypeScript.
MIT License
6 stars 7 forks source link

Required Checkbox breaks form's IsValid #129

Closed TomJLynch closed 6 years ago

TomJLynch commented 6 years ago

I gave a checkbox the required=required attribute. When IsValid runs after clicking save, it crashes on line 266. Stepping through in Visual Studio didn't give me an error, the execution just stops. Stepping through in Chrome debugger identifies (elem).val().trim() === "" as the problem, with an error something like trim() not be valid on the type.

szul commented 6 years ago

Added exception handling around the validity checks. Will log to console if an invalid check is made.