From 8fe99a9b4400caca6fd5fa99b0a3b614209c3cb3 Mon Sep 17 00:00:00 2001 From: geoffrey45 Date: Wed, 21 Sep 2022 16:56:11 +0300 Subject: [PATCH] replace DomRect = null with new DomRect() in vTooltip --- src/directives/vTooltip.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/directives/vTooltip.ts b/src/directives/vTooltip.ts index 8e85367c..b7dc4400 100644 --- a/src/directives/vTooltip.ts +++ b/src/directives/vTooltip.ts @@ -7,7 +7,7 @@ let store: any; // @ts-ignore const virtualEl = { - getBoundingClientRect: () => null, + getBoundingClientRect: () => new DOMRect(), } as VirtualElement; const getTooltip = () => document.getElementById("tooltip") as HTMLElement;