This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Input validation with ng-required function not compatible across different browsers. #4945
Closed
Description
I have a form with input validation that also uses an ng-required function to determine if the input is required.
http://plnkr.co/edit/sBSkkaR6UCPodKxlQBf7?p=preview
Steps to reproduce:
- Type "a" into input
- delete "a" from input
In angular 1.1.5, after you delete "a" from input you can see that in chrome validateCharacters shows undefined and then in the required function shows an empty string. However, in Firefox and IE there is an empty string in validateCharacters and then in the required function it is undefined. If you update to angular 1.2, then Firefox and Chrome are the same but IE is still the old way:
http://plnkr.co/edit/trECTGaXRo5QVWeYTTdV
Is there any workaround for this?