File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -77,11 +77,6 @@ export class SingleSelectionController implements ReactiveController {
7777 this . host . addEventListener ( 'keydown' , this . handleKeyDown ) ;
7878 this . host . addEventListener ( 'focusin' , this . handleFocusIn ) ;
7979 this . host . addEventListener ( 'focusout' , this . handleFocusOut ) ;
80- if ( this . host . checked ) {
81- // Uncheck other siblings when attached if already checked. This mimics
82- // native <input type="radio"> behavior.
83- this . uncheckSiblings ( ) ;
84- }
8580
8681 // Update siblings after a microtask to allow other synchronous connected
8782 // callbacks to settle before triggering additional Lit updates. This avoids
@@ -90,6 +85,12 @@ export class SingleSelectionController implements ReactiveController {
9085 queueMicrotask ( ( ) => {
9186 // Update for the newly added host.
9287 this . root = this . host . getRootNode ( ) as ParentNode ;
88+ if ( this . host . checked ) {
89+ // Uncheck other siblings when attached if already checked. This mimics
90+ // native <input type="radio"> behavior.
91+ this . uncheckSiblings ( ) ;
92+ }
93+
9394 this . updateTabIndices ( ) ;
9495 } ) ;
9596 }
You can’t perform that action at this time.
0 commit comments