Skip to content

Commit d8cda54

Browse files
chore(select): fix initializer of instance members for es2022
PiperOrigin-RevId: 653284770
1 parent 5b73f4c commit d8cda54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

select/internal/selectoption/selectOptionController.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export type SelectOptionConfig = MenuItemControllerConfig;
4646
export 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
}

0 commit comments

Comments
 (0)