Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

fix(ngPattern): Changed pattern to validate against input field value #12633

Closed
wants to merge 1 commit into from

Conversation

kacecode
Copy link

Set patternDirective validator to test against viewValue instead of
modelValue.

Closes #12344, #12618

Set patternDirective validator to test against viewValue instead of
modelValue.

Closes angular#12344, angular#12618
@gkalpak
Copy link
Member

gkalpak commented Aug 20, 2015

I think we need some tests for this fix, in order to catch potential regressions in the future.
@kacecode, could you push a second commit with some tests (i.e. testcases that would fail without the fix, but pass with the fix) ?

@Narretz
Copy link
Contributor

Narretz commented Aug 20, 2015

I actually created a commit with the fix, but didn't get around to post it. Here it is: #12640

@Narretz
Copy link
Contributor

Narretz commented Aug 20, 2015

I'll have a test for this, so we'll go with #12640. But thanks for the PR, @kacecode. It's great to see contributions.

@Narretz Narretz closed this Aug 20, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants