[Bug] Ember 4 regression with passed-in event handlers
- Dominant language
- TypeScript
- Stars
- 22.6k
- Forks
- 4.2k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 15
Description
### 🐞 Describe the Bug
I'm not sure the issue name is good but...
### 🔬 Minimal Reproduction
[This repo](https://github.com/boris-petrov/ember-4-bug). 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](https://discord.com/channels/480462759797063690/480462759797063692/943133829307199508)
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...
Contributor guide
Assessment
This issue has not been assessed yet.