Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

fixes the validation for date picker in IE #10015

Closed
wants to merge 1 commit into from
Closed

fixes the validation for date picker in IE #10015

wants to merge 1 commit into from

Conversation

richardhughes
Copy link

Adds in validation for the input as a last check as IE interpreted the date '11/14/2016d' as valid which is incorrect.

closes #9994

@googlebot googlebot added the cla: yes PR author has signed Google's CLA: https://opensource.google.com/docs/cla/ label Nov 14, 2016
@ThomasBurleson ThomasBurleson modified the milestones: 1.1.3, 1.2.0 Jan 1, 2017
@topherfangio
Copy link
Contributor

This looks good, but can you add some unit tests that show how this fixes the failure?

@topherfangio topherfangio self-requested a review January 11, 2017 21:35
@topherfangio topherfangio self-assigned this Jan 11, 2017
@ThomasBurleson
Copy link
Contributor

@topherfangio - can you add 1-2 unit tests for this PR?

@ThomasBurleson ThomasBurleson added the needs: unit tests This PR needs unit tests to cover the changes being proposed label Mar 7, 2017
@ThomasBurleson ThomasBurleson modified the milestones: 1.1.5, 1.2.0 Mar 7, 2017
@ThomasBurleson ThomasBurleson removed the needs: unit tests This PR needs unit tests to cover the changes being proposed label May 8, 2017
@ThomasBurleson
Copy link
Contributor

Closing as stale PR.

@Splaktar Splaktar removed this from the 1.1.5 milestone Feb 7, 2018
Splaktar added a commit that referenced this pull request Feb 7, 2018
this fixes a regression introduced in v1.1.0 against IE
however the test is able to reproduce the issue on Chrome
thank you to Topher Fangio and Richard Hughes for the original solution

Fixes #9994. Closes #10520. Relates to #10015.
mmalerba pushed a commit that referenced this pull request Jan 4, 2019
## PR Checklist
Please check that your PR fulfills the following requirements:

- [x] The commit message follows [our guidelines](https://github.com/angular/material/blob/master/.github/CONTRIBUTING.md#-commit-message-format)
- [x] Tests for the changes have been added (for bug fixes / features)
- [x] Docs have been added / updated (for bug fixes / features)

## PR Type
What kind of change does this PR introduce?
```
[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Infrastructure changes
[ ] Other... Please describe:
```

## What is the current behavior?
this fixes a regression introduced in v1.1.0 against IE
however the test is able to reproduce the issue on Chrome

Issue Number: 
Fixes #9994. Closes #10520. Relates to #10015.

## What is the new behavior?
The test passes and datepicker validation and ngMessages work properly on IE.

## Does this PR introduce a breaking change?
```
[ ] Yes
[x] No
```

## Other information
thank you to Topher Fangio and Richard Hughes for the original solution
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes PR author has signed Google's CLA: https://opensource.google.com/docs/cla/
Projects
None yet
Development

Successfully merging this pull request may close these issues.

datepicker: validation behaves differently in IE
5 participants