-
-
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
onEventName= vs. oneventname= regression in Ember 3.1-beta #16311
Comments
Thanks for reporting! I'm not 100% sure if this will end up being considered a regression or not, I'll try to discuss in more detail with the team and decide... |
Per discussion at the core team meeting, we want to treat this as a regression. Off the top of my head I'm not aware of any changes in the VM that should have caused this, so will need some investigation. |
is there anything one can do to help move this forward? This regression is keeping us from upgrading as there is no workaround for the lowercase |
@st-h - TBH, we mostly need someone to dig and help track down why we regressed. Perhaps a great first step is submitting a failing test case PR both here and in glimmer-vm... |
TLDR: this message is most likely not related to this issue @rwjblue reporting back from my first extensive debugging adventure through the glimmer and ember internals |
Hmm. That change definitely does odd. Do Ember's own tests pass if you remove that |
@rwjblue maybe I should have posted that to the svg related issue, as I am not totally sure if both issues really do have the same cause. However, I was specifically looking why an attributeBinding like |
I was able to write a test within ember.js and not glimmer.vm so far. Is there anything I can look at for some inspiration? This is what I have done for ember.js within event-dispatcher-test.js:
The second test currently fails. However, I am not sure if that is the best place for such a test. Maybe that can even be simplified. Please let me know if I should submit a PR for that, or if it should be done differently. |
this seems to be quite a though one, as there have been several non trivial changes in how glimmer vm handles attributes. I tried to debug through some changes and it seems that this issue appears after the DynamicProperty is no longer instantiated with a property manager (as is in 0.25.6) that contains the normalized attribute. By now this exceeds all my knowledge about glimmer, its intention and development. Hopefully this helps in resolving this issue though. However by now I am pretty sure that other than what we expected, this issue is not related to #16477 |
@st-h - Those tests look great, a failing test PR would be perfect! 👍 |
This (along with some changes to Ember that I will also PR) solves emberjs/ember.js#16311 and emberjs/ember.js#16477 This is not ready to go yet because I'm also going to refactor so we don't compute the normalized property name twice.
This (along with some changes to Ember that I will also PR) solves emberjs/ember.js#16311 and emberjs/ember.js#16477
This (along with some changes to Ember that I will also PR) solves emberjs/ember.js#16311 and emberjs/ember.js#16477 (cherry picked from commit 014ed47)
FYI - The fix for this has been pulled into release (for 3.1.x release) and beta (for 3.2.0-beta.x release). The latest builds (in 10-15 minutes) to the release, beta, and canary channels should include the fix (you can get the latest tarball URL via ember-source-channel-url). |
The following template code works in 3.0 (and as far as I know Ember 1.x and 2.x) but not in 3.1-beta:
Down-casing the attribute to
onclick
"solves" the problem.Developers coming from other frameworks or vanillajs probably expect this to work. And whether it should or shouldn't work, it will probably break some folks upgrading to Ember >3.0.
The text was updated successfully, but these errors were encountered: