File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,6 @@ export class SingleSelectionController implements ReactiveController {
7474 constructor ( private readonly host : SingleSelectionElement ) { }
7575
7676 hostConnected ( ) {
77- this . root = this . host . getRootNode ( ) as ParentNode ;
7877 this . host . addEventListener ( 'keydown' , this . handleKeyDown ) ;
7978 this . host . addEventListener ( 'focusin' , this . handleFocusIn ) ;
8079 this . host . addEventListener ( 'focusout' , this . handleFocusOut ) ;
@@ -90,6 +89,7 @@ export class SingleSelectionController implements ReactiveController {
9089 // connected at the same time.
9190 queueMicrotask ( ( ) => {
9291 // Update for the newly added host.
92+ this . root = this . host . getRootNode ( ) as ParentNode ;
9393 this . updateTabIndices ( ) ;
9494 } ) ;
9595 }
You can’t perform that action at this time.
0 commit comments