Skip to content

Commit

Permalink
docs: add warning about isVisible()
Browse files Browse the repository at this point in the history
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
  • Loading branch information
alecgibson authored and cexbrayat committed Jul 5, 2023
1 parent 73890ef commit f0df231
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1433,6 +1433,10 @@ isVisible(): boolean
**Details:**
::: warning
`isVisible()` only works correctly if the wrapper is attached to the DOM using [`attachTo`](#attachto)
:::
```js
const Component = {
template: `<div v-show="false"><span /></div>`
Expand Down

0 comments on commit f0df231

Please sign in to comment.