Skip to content

Commit 45a0b96

Browse files
committed
Fixed "Wrong query selector for data-tip #121"
1 parent 5debe8f commit 45a0b96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class ReactTooltip extends Component {
9191
if (!id) {
9292
targetArray = document.querySelectorAll('[data-tip]:not([data-for])')
9393
} else {
94-
targetArray = document.querySelectorAll(`[data-tip][data-for=${id}]`)
94+
targetArray = document.querySelectorAll(`[data-tip][data-for="${id}"]`)
9595
}
9696

9797
// targetArray is a NodeList, convert it to a real array

0 commit comments

Comments
 (0)