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.
Returning undefined in $parsers function updates the model value #9952
Closed
Description
In docs for ngModelController.$parsers
(for 1.3.1) it said that : the 'ngModel' will not be updated until the parse error is resolved" I would expect that when I return undefined
in parser, ngModel
will not be updated.
Based on that, on the following plunker it's not working as expected :
http://plnkr.co/edit/WBxnYMFXPr6hdYV3zZBh?p=preview
How to test it :
- First entering any two letters
- Then enter third letter
- Parser error is shown
-But model value is set to undefined -> this is opposite to the docs.
Is this the expected behavior ?
Thanks,
Igor