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/no-add-event-listener.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ description: 'Warns against the use of `addEventListener`'
14
14
15
15
## :book: Rule Details
16
16
17
-
This rule reports usages of `addEventListener`:
17
+
Svelte relies on event delegation for performance and predictable handler order. Calling `addEventListener` inside a component skips this mechanism. This rule reports any call to `addEventListener` suggests converting to the `on()` helper from `svelte/events`.
0 commit comments