diff --git a/src/components/_classes/component/Component.js b/src/components/_classes/component/Component.js index c6350cfe07..83cd73cfef 100644 --- a/src/components/_classes/component/Component.js +++ b/src/components/_classes/component/Component.js @@ -1480,7 +1480,7 @@ export default class Component extends Element { detach() { // First iterate through each ref and delete the component so there are no dangling component references. _.each(this.refs, (ref) => { - if (typeof ref === NodeList) { + if (ref instanceof NodeList) { ref.forEach((elem) => { delete elem.component; });