nelsonomuto/angular-ui-form-validation

Critical Issue on 1.3.5 - Need Help

Closed this issue · 4 comments

validation-max-length="{message:'
Maximum of 30 characters', value: 30}"
validation-field-required="{message:'
Required', value: true}"

Enter : value s or any single character
The field is marked a invalid ..

When enterred two or more no issues

Please assist otherwise I will have to do ugly work-around

Actual might be coming from validation-field-required ..... I am getting similar issues with validation-field-required on select field... I can't mark select list to be required --- due to parse = true validation error.

Unfortunately, I had to revert back to 1.1.5 as that works solid until we get stable build. Thanks

Ok dude @surendrakashyap I'm attending startup weekend so as soon as the weekend is over, I will look into the issues, I began taking a dive yesterday, I needed to add more unit tests before that release (sorry)

Thanks

I found the problem, it's because there is a new line character in your validation max length attribute. I will push a fix for this but as a temporary solution, format your html so that there are no new lines in the attribute values. @surendrakashyap