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: README.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
@@ -186,7 +186,7 @@ rules in templates can be disabled with eslint directives with mustache or html
186
186
|[template-no-aria-hidden-body](docs/rules/template-no-aria-hidden-body.md)| disallow aria-hidden on body element || 🔧 ||
187
187
|[template-no-aria-unsupported-elements](docs/rules/template-no-aria-unsupported-elements.md)| disallow ARIA roles, states, and properties on elements that do not support them ||||
Copy file name to clipboardExpand all lines: docs/rules/template-no-down-event-binding.md
+19-12Lines changed: 19 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,13 @@
2
2
3
3
<!-- end auto-generated rule header -->
4
4
5
-
Disallows mouse down and touch start event bindings.
5
+
Disallows pointer down event bindings (`mousedown`, `pointerdown`).
6
6
7
-
Mouse down and touch start events can cause accessibility issues because they don't work well with keyboard navigation. Use `click` or `keydown` events instead.
7
+
Pointer down events fire before the user releases the pointer, which can cause accessibility issues — actions triggered on down events don't allow users to cancel by moving the pointer away before releasing. Bind to the corresponding pointer up event instead.
8
8
9
9
## Rule Details
10
10
11
-
This rule disallows the use of `mousedown`and `touchstart` events in templates.
11
+
This rule disallows the use of `mousedown`, `onmousedown`, `pointerdown`, and `onpointerdown` events in templates, whether via `{{on}}`, `{{action on=...}}`, or HTML attributes.
12
12
13
13
## Examples
14
14
@@ -22,7 +22,7 @@ Examples of **incorrect** code for this rule:
0 commit comments