We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5debe8f commit 45a0b96Copy full SHA for 45a0b96
src/index.js
@@ -91,7 +91,7 @@ class ReactTooltip extends Component {
91
if (!id) {
92
targetArray = document.querySelectorAll('[data-tip]:not([data-for])')
93
} else {
94
- targetArray = document.querySelectorAll(`[data-tip][data-for=${id}]`)
+ targetArray = document.querySelectorAll(`[data-tip][data-for="${id}"]`)
95
}
96
97
// targetArray is a NodeList, convert it to a real array
0 commit comments