Commit 74709b0
authored
Apply context when dispatching event
`this` inside of event listeners should be the element that the listener was registered on.
Without this, dispatching events on preact elements was failing with `Cannot read property 'click' of undefined`1 parent cb65458 commit 74709b0
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| |||
0 commit comments