We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d23da63 commit 329f432Copy full SHA for 329f432
src/utils/handle-style.ts
@@ -52,13 +52,7 @@ function injectStyle({
52
const { insertAt } = ref
53
54
if (document.getElementById(id)) {
55
- // this should never happen because of `injected[type]`
56
- if (process.env.NODE_ENV !== 'production') {
57
- // eslint-disable-next-line no-console
58
- console.warn(
59
- `[react-tooltip] Element with id '${id}' already exists. Call \`removeStyle()\` first`,
60
- )
61
- }
+ // this could happen in cases the tooltip is imported by multiple js modules
62
return
63
}
64
0 commit comments