This repository was archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27.3k
fix(input): correctly handle invalid model values for `input[date/time/…... #9375
Merged
Conversation
This file contains hidden or 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
Contributor
Author
|
@jeffbcross Could you review this? |
Contributor
|
@tbosch sure |
Contributor
|
LGTM, other than two nit-picks left on the commit |
54904bd to
ce7980f
Compare
tbosch
added a commit
to tbosch/angular.js
that referenced
this pull request
Oct 1, 2014
…e/…]` Similar to `input[number]` Angular will throw if the model value for a `input[date]` is not a `Date` object. For `Invalid Date`s (dates whose `getTime()` is `NaN`) `input[date]` will render an empty string. Closes angular#8949 Closes angular#9375
ce7980f to
533a312
Compare
tbosch
added a commit
to tbosch/angular.js
that referenced
this pull request
Oct 1, 2014
…e/…]` Similar to `input[number]` Angular will throw if the model value for a `input[date]` is not a `Date` object. For `Invalid Date`s (dates whose `getTime()` is `NaN`) `input[date]` will render an empty string. Closes angular#8949 Closes angular#9375
Contributor
Author
|
@jeffbcross Could you double check the error message (as a native speaker) |
Contributor
|
@tbosch Gladly, I will put on my native speaker hat. |
docs/content/error/datefmt.ngdoc
Outdated
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should have hyphen, "date-related"
Contributor
|
One native speaker comment but otherwise LGTM. |
…e/…]` Similar to `input[number]` Angular will throw if the model value for a `input[date]` is not a `Date` object. For `Invalid Date`s (dates whose `getTime()` is `NaN`) `input[date]` will render an empty string. Closes angular#8949 Closes angular#9375
533a312 to
a0bfdd0
Compare
Contributor
Author
|
Ok, waiting for travis, then will merge. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
...]`
Similar to
input[number]Angular will throw if the model valuefor a
input[date]is not aDateobject.For
Invalid Dates (dates who’sgetTime()isNaN)input[date]will render an empty string.
Closes #8949