8000 fix(test): should have working callbacks (incomplete) · materializecss/materialize@f9cd37a · GitHub
Skip to content

Commit f9cd37a

Browse files
committed
fix(test): should have working callbacks (incomplete)
1 parent 1626a28 commit f9cd37a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class Component {
3434
let instances = null;
3535
if (els instanceof Element) {
3636
instances = new classDef(els, options);
37-
} else if (!!els && (els.jquery || els.cash || els instanceof NodeList)) {
37+
} else if (!!els && (els.jquery || els.cash || els instanceof NodeList || els instanceof HTMLCollection)) {
3838
let instancesArr = [];
3939
for (let i = 0; i < els.length; i++) {
4040
instancesArr.push(new classDef(els[i], options));

0 commit comments

Comments
 (0)