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

Fix "confirmation" validation by passing model and attribute arguments along to validate #27

Merged
merged 2 commits into from
Feb 16, 2022
Merged

Fix "confirmation" validation by passing model and attribute arguments along to validate #27

merged 2 commits into from
Feb 16, 2022

Conversation

charlesdemers
Copy link
Contributor

Hi! 👋

I'm using your addon in my project and fell on an issue: the "confirmation" validation does not work if we don't pass it a model. I checked the code in ember-validators and all validators receive a model and attribute argument (even if they don't use it!) so I forwarded them to fix my issue.

I also fixed the types for the @validationState decorator since it didn't pass type check.

@chrismllr
Copy link
Owner

Looks good, appreciate the PR! 🎉

@chrismllr chrismllr merged commit e902448 into chrismllr:main Feb 16, 2022
@charlesdemers charlesdemers deleted the fix/confirmation-validation-by-passing-model-and-attribute-along branch February 16, 2022 18:12
@chrismllr
Copy link
Owner

@charlesdemers
Copy link
Contributor Author

@chrismllr Awesome! Thank you!

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.

2 participants