-
-
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
$.trigger does not trigger component actions. #13888
Comments
@martndemus I'm curious, in |
The issue would likely be (based on the bisect result) that the event dispatched cannot find the component that is created, so it doesn't delegate the event to it. I'll try to dig in more this morning. |
worth mentioning that it seems this only occurs during testing. When apps are run normally, everything seems to work as one would expect |
It is very probable that this is a bug with test tooling working on old View API, that the found commit has broken. |
@martndemus Just curious is this post https://dockyard.com/blog/2016/07/26/how-to-bisect-ember about this issue? |
Yes, the blogpost describes how I found the commit that causes the bug. |
@martndemus Would it be possible to get a Twiddle showing a reproduction? |
I tried making a Twiddle here but for some reason the whole test thing shows up blank ¯_(ツ)_/¯ |
Seems to be a bug in Twiddle |
@acorncom Reproduction is: clone https://github.com/martndemus/ember-form-for/commit/206cc307740bfa07de6eee48cebbca14839651eb and run |
You can see the same problem on the |
This is definitely an issue with an interaction between the change that @martndemus pointed out and the way ember-test-helpers sets up the event dispatcher. Ultimately, this causes the event dispatcher gets the event but can't identify which view it should be triggering. I'll try to get a fix together in time for the next beta. |
I did a bit more digging and believe that we have this fixed with emberjs/ember-test-helpers#167 (released in ember-test-helpers@0.5.28) and ffc29cd (which is cherry-picked into beta branch). The basic issue is that since the Submitted https://github.com/martndemus/ember-form-for/pull/79 to update and kick off a test run in ember-form-for showing that things are working properly now. |
Can confirm this is fixed now. Closing the issue! |
The test suites of
ember-one-way-controls
andember-form-for
will not pass oncanary
and2.8.0-beta
.An example of what is failing: https://github.com/martndemus/ember-form-for/blob/master/tests/integration/components/form-field-test.js#L156-L164
Specifically this does not seem to trigger actions on components anymore:
Using
git bisect
I found that components/ember@9cff2f8 is the commit that introduces the bug, which I think corresponds to this commit: 2a233dfThe text was updated successfully, but these errors were encountered: