-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[BUG 3.13] Observer on CP receiving wrong value #18246
Comments
I believe this may be fixed by some changes in #18223 |
We should ensure (by adding a test)... |
Ok, I'll try to add a PR with that failing test... |
simonihmig
added a commit
to simonihmig/ember.js
that referenced
this issue
Aug 9, 2019
Here's a failing test: #18248 |
Fixed by #18248! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is a reproduction, that is failing starting w/ 3.13.0-beta.1 (same on canary): https://codesandbox.io/embed/my-app-i4i02?initialpath=/tests
The failing test is this one:
_foo
in the observer function is (still)true
(makes the assertion fail), while it should befalse
as the observer is triggered by setting it explicitly tofalse
. Another super weird thing is that the third assertion (the last line in the test) now also fails, while it does not fail when_foo
is not read from in the observer (see the "case2" test in the sandbox).Also the observer does see the updated value of
true
, when not observing the CP_foo
, but directly the simple propertyfoo
(see "case1").The text was updated successfully, but these errors were encountered: