Commit c3082f2
docs(user-event): add example to prepend text with
* docs(user-event): fix formatting
Run `prettier --write --parser=mdx docs/ecosystem-user-event.mdx` to fix
the file's formatting.
* docs(user-event): add example to prepend text with `type`
Add an example that shows how to prepend text with `type`. By default,
`type` appends to the existing text. To prepend text, you should reset
the element's selection range and provide the `initialSelectionStart`
and `initialSelectionEnd` options to `type`.
* docs(user-event): simplify 'prepend text' example
Co-authored-by: Philipp Fritsche <ph.fritsche@gmail.com>
Co-authored-by: Philipp Fritsche <ph.fritsche@gmail.com>type (#952)1 parent 86977e9 commit c3082f2
1 file changed
+23
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
213 | 236 | | |
214 | 237 | | |
215 | 238 | | |
| |||
0 commit comments