I have an edit form, and I want the Save button to be disabled until editing for one of the properties associated with an input or selection item is done.
However, if the user edits the text to its original value, the form should no longer be considered dirty.
Example:
- Initial value: "Test" - Not Dirty
- The user edits the input and changes the value to: "Test 2" - Dirty
- The user edits the input again and changes the value to "Test" - Not Dirty
I saw this post that describes how to create a dirtyBindingBehavior, but it only compares the new value with what it was there before - in this case line 3 above will cause the form to still display as "Dirty" because it will compare the old value of Test 2 with the new value of Test.
Any ideas on how to do this?
source
share