Skip to content

Commit 26706fa

Browse files
committed
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.
1 parent 0b5e1bb commit 26706fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/TooltipController/TooltipController.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ const TooltipController = ({
182182
} catch {
183183
if (!process.env.NODE_ENV || process.env.NODE_ENV !== 'production') {
184184
// eslint-disable-next-line no-console
185-
console.warn(`[react-tooltip] "${anchorSelect}" is not a valid CSS selector`)
185+
console.warn(`[react-tooltip] "${selector}" is not a valid CSS selector`)
186186
}
187187
}
188188
}

0 commit comments

Comments
 (0)