emberjs / emberjs/ember.js

[Bug] The `on` modifier does not work with the `modifier` helper

Open
#19,869 7 comments 7 reactions 0 assignees View on GitHub
bug modifiers
Dominant language
TypeScript
Stars
22.6k
Forks
4.2k
Avg merge
3d 12h
Merged PRs (30d)
15

Description

### 🐞 Describe the Bug

This works:

```hbs


```

### 🔬 Minimal Reproduction

This doesn't:

```hbs


```

Can't create a Twiddle because Twiddle is severely outdated, sorry.

### 😕 Actual Behavior

> Uncaught Error: Assertion Failed: Attempted to invoke `(-resolve "modifier:on")`, but on was not a valid modifier name.

### 🤔 Expected Behavior

Should apply the `on` modifier to the element.

### 🌍 Environment

- Ember: 3.28.4
- Node.js/npm: 14.16.0
- OS: Build: Ubuntu, Browser: Windows 10
- Browser: Chrome, Firefox

CC @simonihmig

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.