File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments