You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to implement greaterThan comparing two custom values and what i have noticed that validator is called twice: first time with latest value, second time with old value (and since old value is latest it leads to wrong validation)
as you can see first call to validator (on value change) is with correct value and the second with previous one.
I have implemented custom Angular style validator and everything is going fine (so this is not an issue with change detection runing multiple times o not an issue with value bying set to old one somehow)
The text was updated successfully, but these errors were encountered:
Hello,
I am trying to implement greaterThan comparing two custom values and what i have noticed that validator is called twice: first time with latest value, second time with old value (and since old value is latest it leads to wrong validation)
my code:
form
values received:
as you can see first call to validator (on value change) is with correct value and the second with previous one.
I have implemented custom Angular style validator and everything is going fine (so this is not an issue with change detection runing multiple times o not an issue with value bying set to old one somehow)
The text was updated successfully, but these errors were encountered: