This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This undoes a behavior change introduced in 7b18d1d. The intent was to have ClearValidationState do the right thing for a case where a collection was bound to the empty prefix, and then used again with TryUpdateModel. This change was implemented by saying that a key like "[0].Foo" is a match for the prefix of "Foo". This isn't really right, and it's only interesting for the ClearValidationState case. The problem is that we don't know what the keys look like for a collection. We can assume that they start with [0] but that's not really a guarantee, it's a guess. This change fixes the behavior of StartsWithModel, and move the responsibility for this case back into ClearValidationState. This change also removes the call to ClearValidationState from TryUpdateModel. If you need this behavior, then call ClearValidationState manually. Trying to bind and then re-bind a model object isn't really what we intend.
- Loading branch information
Showing
8 changed files
with
149 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.