Skip to content

Commit f0df231

Browse files
alecgibsoncexbrayat
authored andcommitted
docs: add warning about isVisible()
This change updates the documentation to reflect that `isVisible()` will only work correctly [when attached to the DOM][1] because of an upstream [`jsdom` issue][2]. [1]: #2016 [2]: jsdom/jsdom#3502
1 parent 73890ef commit f0df231

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/api/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,6 +1433,10 @@ isVisible(): boolean
14331433
14341434
**Details:**
14351435
1436+
::: warning
1437+
`isVisible()` only works correctly if the wrapper is attached to the DOM using [`attachTo`](#attachto)
1438+
:::
1439+
14361440
```js
14371441
const Component = {
14381442
template: `<div v-show="false"><span /></div>`

0 commit comments

Comments
 (0)