Skip to content

Commit 7e203e1

Browse files
committed
3.2.8
1 parent a030f50 commit 7e203e1

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## Change Log
22

3+
### 3.2.8 (2017/03/20 15:37 +00:00)
4+
- [#236](https://github.com/wwayne/react-tooltip/pull/236) escape backslash in getTargetArray method (@rnons)
5+
36
### 3.2.7 (2017/02/17 07:24 +00:00)
47
- [#262](https://github.com/wwayne/react-tooltip/pull/262) Fix nodelist converte in safari (@wwayne)
58
- [#260](https://github.com/wwayne/react-tooltip/pull/260) Fix NodeList to Array convertion (@huumanoid)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-tooltip",
3-
"version": "3.2.7",
3+
"version": "3.2.8",
44
"description": "react tooltip component",
55
"main": "dist/index.js",
66
"scripts": {

standalone/react-tooltip.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,8 @@ var ReactTooltip = (0, _staticMethods2.default)(_class = (0, _windowListener2.de
490490
if (!id) {
491491
targetArray = document.querySelectorAll('[data-tip]:not([data-for])');
492492
} else {
493-
targetArray = document.querySelectorAll('[data-tip][data-for="' + id + '"]');
493+
var escaped = id.replace(/\\/g, '\\\\').replace(/"/g, '\\"');
494+
targetArray = document.querySelectorAll('[data-tip][data-for="' + escaped + '"]');
494495
}
495496
// targetArray is a NodeList, convert it to a real array
496497
return (0, _nodeListToArray2.default)(targetArray);

standalone/react-tooltip.min.js

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)