File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
packages/lit-dev-content/site/docs Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ In `connectedCallback()` you should setup tasks that should only occur when the
58
58
``` js
59
59
connectedCallback () {
60
60
super .connectedCallback ()
61
- addEventListener (' keydown' , this ._handleKeydown );
61
+ window . addEventListener (' keydown' , this ._handleKeydown );
62
62
}
63
63
```
64
64
### disconnectedCallback() {#disconnectedcallback}
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ In `connectedCallback()` you should setup tasks that should only occur when the
58
58
``` js
59
59
connectedCallback () {
60
60
super .connectedCallback ()
61
- addEventListener (' keydown' , this ._handleKeydown );
61
+ window . addEventListener (' keydown' , this ._handleKeydown );
62
62
}
63
63
```
64
64
### disconnectedCallback() {#disconnectedcallback}
You can’t perform that action at this time.
0 commit comments