You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/template-click-events-have-key-events.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ When a `{{on "click" …}}` modifier is attached to a non-interactive DOM elemen
9
9
This rule is complementary to [`ember/template-no-invalid-interactive`](./template-no-invalid-interactive.md):
10
10
11
11
-`template-no-invalid-interactive` takes a stricter stance: don't use DOM event modifiers on non-interactive elements at all. Steers authors toward native interactive elements.
12
-
-`template-click-events-have-key-events` is permissive: if you *do* use `{{on "click" …}}` on a non-interactive element, at least pair it with a keyboard listener.
12
+
-`template-click-events-have-key-events` is permissive: if you _do_ use `{{on "click" …}}` on a non-interactive element, at least pair it with a keyboard listener.
13
13
14
14
Enable one, the other, or both depending on your project's stance.
0 commit comments