Repository navigation
Commit 6fba260
Fix act() event example using button before declaration (#8593)
* Fix act() dispatch example using button before it is defined
The event example called button.dispatchEvent before const button was declared, which would throw at runtime. Also drop it.only from the docs snippet.
* Highlight the full act event-dispatch block
---------
Co-authored-by: Aurora Scharff <aurora.sofie@gmail.com>1 parent fb39485 commit 6fba260
1 file changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
133 | 136 | | |
134 | 137 | | |
135 | 138 | | |
136 | 139 | | |
137 | 140 | | |
138 | | - | |
139 | | - | |
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
| |||
0 commit comments