Skip to content

Conversation

@msmolens
Copy link
Contributor

@msmolens msmolens commented Oct 14, 2021

User Interactions > user-event v13 > type(element, text, [options]):

  • Add an example that shows how to prepend text with type.

Run `prettier --write --parser=mdx docs/ecosystem-user-event.mdx` to fix
the file's formatting.
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`.
Copy link
Member

@timdeschryver timdeschryver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Co-authored-by: Philipp Fritsche <ph.fritsche@gmail.com>
@MatanBobi MatanBobi merged commit c3082f2 into testing-library:main Feb 6, 2022
@MatanBobi
Copy link
Member

Thanks! :)

@testing-library testing-library deleted a comment from allcontributors bot Feb 6, 2022
@MatanBobi
Copy link
Member

@all-contributors please add @msmolens for docs :)

@allcontributors
Copy link
Contributor

@MatanBobi

I've put up a pull request to add @msmolens! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants