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 {
74
74
constructor ( private readonly host : SingleSelectionElement ) { }
75
75
76
76
hostConnected ( ) {
77
- this . root = this . host . getRootNode ( ) as ParentNode ;
78
77
this . host . addEventListener ( 'keydown' , this . handleKeyDown ) ;
79
78
this . host . addEventListener ( 'focusin' , this . handleFocusIn ) ;
80
79
this . host . addEventListener ( 'focusout' , this . handleFocusOut ) ;
@@ -90,6 +89,7 @@ export class SingleSelectionController implements ReactiveController {
90
89
// connected at the same time.
91
90
queueMicrotask ( ( ) => {
92
91
// Update for the newly added host.
92
+ this . root = this . host . getRootNode ( ) as ParentNode ;
93
93
this . updateTabIndices ( ) ;
94
94
} ) ;
95
95
}
You can’t perform that action at this time.
0 commit comments