From 7dcad4e292dacb800fb7391a244a47ad72ba1a8b Mon Sep 17 00:00:00 2001 From: Valentin Kaelin Date: Thu, 11 Jun 2020 22:46:47 +0200 Subject: [PATCH] fix: tooltip error when hovering while closing detailed match --- client/src/components/Common/Tooltip.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/src/components/Common/Tooltip.vue b/client/src/components/Common/Tooltip.vue index 7f865f4..b80daf9 100644 --- a/client/src/components/Common/Tooltip.vue +++ b/client/src/components/Common/Tooltip.vue @@ -85,6 +85,11 @@ export default { this.top = event.clientY if (!this.directionChecked) { + // Component has been destroyed + if (!this.$refs.content || !this.$refs.trigger) { + return + } + await this.$nextTick() this.checkTooltipVisibility() }