From 26706fabbbee6100684b81cbb088dee0912ce29a Mon Sep 17 00:00:00 2001 From: Daniel Tamai Date: Thu, 18 May 2023 21:55:53 -0300 Subject: [PATCH] feat: log invalid CSS selector with tooltip-id The data-tooltip-id may be invalid too, so we can log that value for better troubleshooting. --- src/components/TooltipController/TooltipController.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/TooltipController/TooltipController.tsx b/src/components/TooltipController/TooltipController.tsx index 185947c1..376de7ac 100644 --- a/src/components/TooltipController/TooltipController.tsx +++ b/src/components/TooltipController/TooltipController.tsx @@ -182,7 +182,7 @@ const TooltipController = ({ } catch { if (!process.env.NODE_ENV || process.env.NODE_ENV !== 'production') { // eslint-disable-next-line no-console - console.warn(`[react-tooltip] "${anchorSelect}" is not a valid CSS selector`) + console.warn(`[react-tooltip] "${selector}" is not a valid CSS selector`) } } }