Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed logic error with ngf-ignore-invalid #1685

Merged
merged 1 commit into from
Sep 6, 2016
Merged

fixed logic error with ngf-ignore-invalid #1685

merged 1 commit into from
Sep 6, 2016

Conversation

jonathan-chin
Copy link
Contributor

flag setting line was nested incorrectly
moved to fix

flag setting line was nested incorrectly
moved to fix
@danialfarid
Copy link
Owner

I don't see why it is incorrect. Can you create a jsfiddle showing what the issue is and how this fixes it?

@jonathan-chin
Copy link
Contributor Author

jonathan-chin commented Sep 6, 2016

Well, the documentation says:

ngf-ignore-invalid="'pattern maxSize'" // ignore the files that fail the specified validations. They will
// just be ignored and will not show up in ngf-model-invalid or make the form invalid.

For me, the current code wasn't accomplishing the last part, not making the
form invalid.

On Sep 6, 2016 3:35 AM, "Danial Farid" notifications@github.com wrote:

I don't see why it is incorrect. Can you create a jsfiddle showing what
the issue is and how this fixes it?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#1685 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHK8tIpuvI_zzqfzcWzh1GfXZp3hRRogks5qnRfLgaJpZM4J1WUt
.

@danialfarid
Copy link
Owner

Why do you think it makes the form invalid? Can you create an example?

@jonathan-chin
Copy link
Contributor Author

I wrote a quick sample:

http://jsbin.com/nazoyu/edit?html,js,output

Maybe I'm doing something wrong. The form has the ngf-ignore-invalid attribute but adding an invalid file (anything larger than 1b) still trips errors.

@danialfarid danialfarid merged commit 77b3126 into danialfarid:master Sep 6, 2016
danialfarid added a commit that referenced this pull request Sep 6, 2016
@danialfarid
Copy link
Owner

I see now, thanks. Fixed at 12.2.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants