Skip to content

Commit 831f196

Browse files
committed
debug console logs.
1 parent 23d8874 commit 831f196

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/core/dom.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,12 @@ const querySelectorAllAndMe = (roots, selector) => {
8787
if (root.matches(selector)) {
8888
all.unshift(root); // root element should be first.
8989
}
90+
console.log("qsam root:", root);
91+
console.log("qsam all:", all);
92+
9093
}
94+
95+
console.log("qsam ret:", [... new Set(all)]);
9196
return [... new Set(all)];
9297
};
9398

src/pat/selectbox/selectbox.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@ export default Base.extend({
1919
}
2020

2121
this.all_selects = dom.querySelectorAllAndMe(el, "select:not([multiple])");
22+
console.log(this.all_selects);
2223
for (const sel of this.all_selects) {
2324
// create parent span if not direct child of a label
25+
console.log(sel);
26+
console.log(sel.parentNode);
2427
if (!sel.parentNode.matches("label")) {
2528
dom.wrap(sel, document.createElement("span"));
2629
}

0 commit comments

Comments
 (0)