Use the new DOM ID method of determining the correct DOM node for a component
This commit is contained in:
parent
ff5a44692d
commit
41cf7ddfb2
|
@ -36,8 +36,7 @@
|
||||||
|
|
||||||
// Util to get the inner DOM node by a component ID
|
// Util to get the inner DOM node by a component ID
|
||||||
const getDOMNode = id => {
|
const getDOMNode = id => {
|
||||||
const component = document.getElementsByClassName(id)[0]
|
return document.getElementsByClassName(`${id}-dom`)[0]
|
||||||
return [...component.children][0]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Util to calculate the variance of a set of data
|
// Util to calculate the variance of a set of data
|
||||||
|
|
Loading…
Reference in New Issue