Skip to content

Commit 6a9d8e6

Browse files
committed
docs(faq): add onMounted ref question
closes #19736
1 parent edf29fd commit 6a9d8e6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/docs/src/pages/en/getting-started/frequently-asked-questions.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,8 @@ The following responses are a collection of common questions asked by the Vuetif
101101

102102
Not directly, you have to set `configureCompat({ MODE: 3 })` globally and `MODE: 2` in each of your components that you want to run in compatibility mode. There will still be some incorrect warnings that can be ignored with the `-ATTR_FALSE_VALUE` filter in devtools.
103103

104+
* **Why don't elements exist in the DOM yet in `onMounted()`?** ([#19736](https://github.com/vuetifyjs/vuetify/issues/19736))
105+
106+
Some vuetify components are asynchronous, so there is no guarantee that their children will be mounted immediately. Either wait for the target element itself to be mounted with `v-on:vue:mounted` or use `onMounted` in a separate component that only has plain elements between the `<template>` and your target element.
107+
104108
<PromotedPromoted type="theme" />

0 commit comments

Comments
 (0)