From 45a0b96bd74bb0179458377301c15f47e4cde4e7 Mon Sep 17 00:00:00 2001 From: Tomasz Netczuk Date: Wed, 22 Jun 2016 11:00:58 +0200 Subject: [PATCH] Fixed "Wrong query selector for data-tip #121" --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 9eef00a93..2ef8eacd6 100644 --- a/src/index.js +++ b/src/index.js @@ -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