From 960e91e9f4bc06c2b966449e92dab71da413e145 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Mon, 15 Mar 2021 15:59:37 +0100 Subject: [PATCH] Document after-show and after-hide events of Popover Signed-off-by: Vincent Petry --- src/components/Popover/Popover.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/components/Popover/Popover.vue b/src/components/Popover/Popover.vue index 38484b4205..7e152d5a43 100644 --- a/src/components/Popover/Popover.vue +++ b/src/components/Popover/Popover.vue @@ -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 than 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') } }