question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Ember 4 regression with passed-in event handlers

See original GitHub issue

🐞 Describe the Bug

I’m not sure the issue name is good but…

🔬 Minimal Reproduction

This repo. Clone, npm install, ember serve. Click the click me! text. Nothing happens (but it should). If you remove the last line in app/templates/application.hbs - it does happen. If you downgrade Ember’s version to 3.28.x - it also does happen.

😕 Actual Behavior

Nothing changes.

🤔 Expected Behavior

To display true because of the set call.

🌍 Environment

  • Ember: 4.1.0 (happens also with 4.2.0)
  • Node.js/npm: 17
  • OS: Linux
  • Browser: Chrome 98

➕ Additional Context

Discord link

P.S. all the complexity with set, later, each and so on is needed. Without any of these things, the code works correctly. Don’t ask me why…

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Timbuktu1982commented, Feb 16, 2022

Ah ok, I saw in the documentation that both ways are still usable…

https://guides.emberjs.com/release/upgrading/current-edition/templates/

0reactions
Timbuktu1982commented, Feb 16, 2022

Yes, I understand that up front, but I think it’s necessary to touch and adjust all the code anyway. I know, in many cases it is many work. As for the old style, I would have thought that the old style is generally no longer applicable.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Handling Events - Components - Ember Guides
You can respond to user events on your component like double-clicking, hovering, and key presses through event handlers. Simply implement the name of...
Read more >
@ember/test-helpers | Yarn - Package Manager
A test-framework-agnostic set of helpers for testing Ember.js applications. Compatibility. Ember 3.8 or above; Ember CLI 3.8 or above; Node.js 10 or above ......
Read more >
7229 (1.4.3 regression - passing null to event handler) – jQuery
1.4.3 regression - passing null to event handler ... but in 1.4.3, it gives a "handler is null" in the jQuery.event.add ... Milestone:...
Read more >
Changelog - Cypress Documentation
Fixed a regression introduced in the Electron browser in Cypress 10.8.0 where ... in run-mode if an error was thrown from a test:before:run...
Read more >
Backbone.js
A Collection helps you deal with a group of related models, handling the loading ... When multiple events are passed in using the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found