Skip to content

Commit

Permalink
feat(docs): add warning on v-if vs v-show for QTooltip & QMenu quasar…
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoenescu committed Aug 16, 2024
1 parent 330bc6c commit 83e4254
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/src/pages/vue-components/menu/menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ Alternatively, you can use the QMenu's property `auto-close` or handle closing t

<DocExample title="Toggle through v-model" file="VModel" />

::: warning
If you want to conditionally activate or de-activate a QMenu, please use `v-if` on it instead of `v-show`.
:::

### Submenus

<DocExample title="Menus in menus" file="MenuInMenu" />
Expand Down
4 changes: 4 additions & 0 deletions docs/src/pages/vue-components/tooltip/tooltip.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ The idea with QTooltip is to place it inside your DOM element / component that y

<DocExample title="Toggle through v-model" file="VModel" />

::: warning
If you want to conditionally activate or de-activate a QTooltip, please use `v-if` on it instead of `v-show`.
:::

### Customize

<DocExample title="Customize" file="Coloring" />
Expand Down

0 comments on commit 83e4254

Please # to comment.