-
-
Notifications
You must be signed in to change notification settings - Fork 141
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
belongsTo not properly emptying when set to null
#315
Comments
Found the piece of code that causes this: |
@snewcomer is there a need to relay anyway if the new value is not an object (mainly |
Hi, I'm on 1.3.0 and want to update to 1.5.0, is it possible to make a release with this fix? Thanks in advance! |
@snewcomer this seems to have broken again for me on 1.6.0 even though the PR #318 is in that release. |
What release did it last work in? |
1.3, it seems #318 also didn't fix this exact issue as the section of code that's triggered is above that (see a couple comments back). I think the problem is that it only checks if the original is an object and then returns the relay, while the true value is now |
I have not checked its status in the 2.0 beta which I just noticed exists on a branch. Might be different there if its not using relay anymore. |
I’m guessing this is fixed now as of 2.0z. I’ll close for now but feel free to reopen! |
Version
1.5.0
Test Case
#314
Steps to reproduce
I first spotted this in a changeset powered ember-bootstrap form w/ a power-select for (re)setting a belongsTo relationship. Works fine on 1.3.0.
Expected Behavior
The relationship is emptied properly.
Actual Behavior
It is not emptied :(
The text was updated successfully, but these errors were encountered: