Skip to content

Commit

Permalink
Document after-show and after-hide events of Popover
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Petry <[email protected]>
  • Loading branch information
PVince81 committed Mar 16, 2021
1 parent a3774bc commit b42b0f4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/components/Popover/Popover.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,18 @@ export default {
},
(val) => {
if (val) {
/**
* Triggered after the tooltip was visually displayed.
*
* This is different from the 'show' and 'apply-show' which
* run earlier at this where there is no guarantee that the
* tooltip is already visible and in the DOM.
*/
this.$emit('after-show')
} else {
/**
* Triggered after the tooltip was visually hidden.
*/
this.$emit('after-hide')
}
}
Expand Down

0 comments on commit b42b0f4

Please sign in to comment.