-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
[ember-source 3.13] using a computed property in the before
key for a validator throws error
#661
Comments
@patocallaghan thank you for pointing that out and fixing the issue! I'll test that PR in our application today. |
Looks like @GavinJoyce has also started to fix for 3.13 in #662 |
Just ran into this and it seems it also occurs when the validation rule includes the |
Verified that https://github.com/offirgolan/ember-cp-validations/tree/v4.0.0-beta.10 fixes this issue. Probably via #668 |
Environment
Steps to Reproduce
yarn test
: https://github.com/efx/cp-validations-testSpecifically using the
alias
computed within a validation object breaks with ember-source. The ember-source assertion is in core_object.js.The failing logic occurs in
https://github.com/offirgolan/ember-cp-validations/blob/2e901724390172d3b9584aec69696e2f8e28fc29/addon/-private/options.js#L26
If you pause execution it seems to happen since
options.before
is aCOMPUTED_DECORATOR
?The text was updated successfully, but these errors were encountered: