We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5debe8f + 45a0b96 commit 803b67eCopy full SHA for 803b67e
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