-
-
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
Presence validation on belongsTo relationship stopped working on 3.11. #651
Comments
Adding debounce value makes it work: export default buildValidations({
title: [
validator('presence', true)
],
author: [
validator('presence', {
presence: true,
debounce: 10
})
]
}); This is working but it is not the best approach. |
I can confirm that this is still an issue in Ember 3.12:
|
Disable validations until adopted-ember-addons/ember-cp-validations#651 is fixed
I can confirm that this is an issue with Ember 3.12.x (both source and data) and I've also tried the latest beta |
This is working on Ember 3.16, CP validations version 4.0.0-beta.10 |
@alejandrodevs @fran-worley @arm1n @erikap we droped support for ember versions < |
I think it was fixed here 369f080 |
Environment
Steps to Reproduce
After I upgraded from ember 3.10 to 3.11 the presence validations on belongsTo relationships stopped working. Looks like it does not detect that the associated record has changed and displays
This field can't be blank
even when record is well assigned.After I ran
notifyPropertyChange
on that property the validations get updated and works correctly.This is how my model looks like:
The text was updated successfully, but these errors were encountered: