We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c4a4f87 + f731209 commit 661a384Copy full SHA for 661a384
src/index.js
@@ -16,6 +16,8 @@ import getPosition from './utils/getPosition'
16
import getTipContent from './utils/getTipContent'
17
import { parseAria } from './utils/aria'
18
19
+import createArrayFromMixed from 'fbjs/lib/createArrayFromMixed'
20
+
21
/* CSS */
22
import cssStyle from './style'
23
@@ -154,10 +156,7 @@ class ReactTooltip extends Component {
154
156
}
155
157
158
// targetArray is a NodeList, convert it to a real array
- // I hope I can use Object.values...
- return Object.getOwnPropertyNames(targetArray).map(key => {
159
- return targetArray[key]
160
- })
+ return createArrayFromMixed(targetArray)
161
162
163
/**
0 commit comments