[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
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:
- Created 2 years ago
- Comments:7 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah ok, I saw in the documentation that both ways are still usable…
https://guides.emberjs.com/release/upgrading/current-edition/templates/
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.