Skip to content

Commit 5a7e360

Browse files
authored
Merge pull request #1026 from dtamai/improve-warning
feat: log invalid CSS selector with tooltip-id
2 parents 0b5e1bb + 26706fa commit 5a7e360

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)