diff --git a/src/index.js b/src/index.js index 9c305a896..86538fc8f 100644 --- a/src/index.js +++ b/src/index.js @@ -146,7 +146,7 @@ class ReactTooltip extends Component { // targetArray is a NodeList, convert it to a real array // I hope I can use Object.values... - return Object.keys(targetArray).filter(key => key !== 'length').map(key => { + return Object.getOwnPropertyNames(targetArray).map(key => { return targetArray[key] }) }