Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: mentions attachTo in trigger documentation #1972

Merged
merged 1 commit into from Feb 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/api/index.md
Expand Up @@ -1797,6 +1797,12 @@ await wrapper.trigger('keydown', { keyCode: 65 })
You should use `await` when you call `trigger` to ensure that Vue updates the DOM before you make an assertion.
:::

::: warning
Some events, like clicking on a checkbox to change its `v-model`,
will only work if the test uses `attachTo: document.body`.
Otherwise, the `change` event will not be triggered, and the `v-model` value does not change.
:::

### unmount

Unmount the application from the DOM.
Expand Down