File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
select/internal/selectoption Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export type SelectOptionConfig = MenuItemControllerConfig;
46
46
export class SelectOptionController implements ReactiveController {
47
47
private readonly menuItemController : MenuItemController ;
48
48
private internalDisplayText : string | null = null ;
49
- private lastSelected = this . host . selected ;
49
+ private lastSelected : boolean ;
50
50
private firstUpdate = true ;
51
51
52
52
/**
@@ -97,6 +97,7 @@ export class SelectOptionController implements ReactiveController {
97
97
private readonly host : ReactiveControllerHost & SelectOption ,
98
98
config : SelectOptionConfig ,
99
99
) {
100
+ this . lastSelected = this . host . selected ;
100
101
this . menuItemController = new MenuItemController ( host , config ) ;
101
102
host . addController ( this ) ;
102
103
}
You can’t perform that action at this time.
0 commit comments