From 8d467c112ddaace81322d725e117077a2320a2e4 Mon Sep 17 00:00:00 2001 From: David Dal Busco Date: Wed, 17 Apr 2024 17:57:10 +0200 Subject: [PATCH] chore: solve lint error type 'undefined' is not assignable to type 'Node' (#412) # Motivation Lint currently detects an error on `main`: ``` /Users/daviddalbusco/projects/dfinity/gix-components/src/lib/components/Tooltip.svelte:69:31 Error: Argument of type 'HTMLDivElement | undefined' is not assignable to parameter of type 'Node'. Type 'undefined' is not assignable to type 'Node'. (ts) // Move tooltip to the body to avoid it being cut off by overflow: hidden. document.body.appendChild(tooltipComponent); }); ``` --- src/lib/components/Tooltip.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/Tooltip.svelte b/src/lib/components/Tooltip.svelte index 52cc7ea5..37dffda5 100644 --- a/src/lib/components/Tooltip.svelte +++ b/src/lib/components/Tooltip.svelte @@ -1,6 +1,6 @@