After 5 hours looking how to fix IE8 bug with placeholder and required attribute,
I manage to find the problem and the solution.
The key problem is that our $formatter is executed before the model binder finish loading.
which caused the placeholder to be applied as a value.
You can guess, this lead to by passing your required validation.
So the key solution is to let the model binder finish their work first and then we do watermark of our control.
Key of the day : $timeout
Feel free to see the whole angular placeholder from my gist
https://gist.github.com/kkurni/7018564
2 comments:
Hi, We face a problem when on the search field, we press a tab button.
You can add binding on blur.
Post a Comment