We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f85b3e commit adb8d10Copy full SHA for adb8d10
1 file changed
radio/internal/single-selection-controller.ts
@@ -74,7 +74,6 @@ export class SingleSelectionController implements ReactiveController {
74
constructor(private readonly host: SingleSelectionElement) {}
75
76
hostConnected() {
77
- this.root = this.host.getRootNode() as ParentNode;
78
this.host.addEventListener('keydown', this.handleKeyDown);
79
this.host.addEventListener('focusin', this.handleFocusIn);
80
this.host.addEventListener('focusout', this.handleFocusOut);
@@ -90,6 +89,7 @@ export class SingleSelectionController implements ReactiveController {
90
89
// connected at the same time.
91
queueMicrotask(() => {
92
// Update for the newly added host.
+ this.root = this.host.getRootNode() as ParentNode;
93
this.updateTabIndices();
94
});
95
}
0 commit comments