bietkul / react-reactive-form

Angular like reactive forms in React.
MIT License
309 stars 32 forks source link

Dirty/Pristine properties containes invalid value #24

Closed pankucsi closed 6 years ago

pankucsi commented 6 years ago

If i want to check the state of input in the begining it is pristine as should be, but after I click into the input and leave it alone without modify the value, it is going to be dirty.

It should be dirty after the inited value has been changed?

I have modified one of your example repo where you can check the issue: Example repo

bietkul commented 6 years ago

Actually, the dirty property only tells whether the state of an input has been changed or not. RRF doesn't compare the input values to determine the dirty property, it just check the value, blur changes events to mark a field dirty.

bietkul commented 6 years ago

Closing this, since no activity from a long time.