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;
4646export class SelectOptionController implements ReactiveController {
4747 private readonly menuItemController : MenuItemController ;
4848 private internalDisplayText : string | null = null ;
49- private lastSelected = this . host . selected ;
49+ private lastSelected : boolean ;
5050 private firstUpdate = true ;
5151
5252 /**
@@ -97,6 +97,7 @@ export class SelectOptionController implements ReactiveController {
9797 private readonly host : ReactiveControllerHost & SelectOption ,
9898 config : SelectOptionConfig ,
9999 ) {
100+ this . lastSelected = this . host . selected ;
100101 this . menuItemController = new MenuItemController ( host , config ) ;
101102 host . addController ( this ) ;
102103 }
You can’t perform that action at this time.
0 commit comments