# ember/template-no-action-modifiers 🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix). 💼 This rule is enabled in the following [configs](https://github.com/ember-cli/eslint-plugin-ember#-configurations): `strict-gjs`, `strict-gts`. Disallow usage of `{{action}}` modifiers in templates. The `{{action}}` modifier has been deprecated in favor of the `{{on}}` modifier. The `{{on}}` modifier provides a more explicit and flexible way to handle events. ## Rule Details This rule disallows using `{{action}}` as an element modifier. ## Examples ### Incorrect ❌ ```gjs ``` ```gjs ``` ```gjs ``` ### Correct ✅ ```gjs ``` ```gjs ``` ```gjs ``` ## Options | Name | Type | Default | Description | | ----------- | ---------- | ------- | ------------------------------------------------------------------------ | | `allowlist` | `string[]` | `[]` | List of element tag names where `{{action}}` modifiers should be allowed | The option can be passed as an array (shorthand) or an object: Shorthand: ```json { "ember/template-no-action-modifiers": ["error", ["button"]] } ``` Object form: ```json { "ember/template-no-action-modifiers": ["error", { "allowlist": ["button"] }] } ``` ## Related Rules - [template-no-action](./template-no-action.md) ## References - [Ember Octane Guide - Element Modifiers](https://guides.emberjs.com/release/components/template-lifecycle-dom-and-modifiers/) - [eslint-plugin-ember template-no-action](https://github.com/ember-cli/eslint-plugin-ember/blob/master/docs/rules/template-no-action.md)