We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73a869b commit 9bdd42eCopy full SHA for 9bdd42e
docs/api/options.md
@@ -323,7 +323,18 @@ wrapper.destroy()
323
- default: `false`
324
325
::: warning Deprecation warning
326
-`attachToDocument` is deprecated and will be removed in future releases. Use [`attachTo`](#attachto) instead.
+`attachToDocument` is deprecated and will be removed in future releases. Use [`attachTo`](#attachto) instead. Example:
327
+
328
+```js
329
+const elem = document.createElement('div')
330
+if (document.body) {
331
+ document.body.appendChild(elem)
332
+}
333
+wrapper = mount(Component, {
334
+ attachTo: elem
335
+})
336
+```
337
338
:::
339
340
Like [`attachTo`](#attachto), but automatically creates a new `div` element for you and inserts it into the body.
0 commit comments