Skip to content

Commit

Permalink
Merge pull request #122 from neciu/master
Browse files Browse the repository at this point in the history
Fixed "Wrong query selector for data-tip #121"
  • Loading branch information
wwayne committed Jun 23, 2016
2 parents 5debe8f + 45a0b96 commit 803b67e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class ReactTooltip extends Component {
if (!id) {
targetArray = document.querySelectorAll('[data-tip]:not([data-for])')
} else {
targetArray = document.querySelectorAll(`[data-tip][data-for=${id}]`)
targetArray = document.querySelectorAll(`[data-tip][data-for="${id}"]`)
}

// targetArray is a NodeList, convert it to a real array
Expand Down

0 comments on commit 803b67e

Please sign in to comment.