Skip to content

Commit

Permalink
chore(select): fix initializer of instance members for es2022
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 652971827
  • Loading branch information
material-web-copybara authored and copybara-github committed Jul 17, 2024
1 parent 5b73f4c commit 909360c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion select/internal/selectoption/selectOptionController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export type SelectOptionConfig = MenuItemControllerConfig;
export class SelectOptionController implements ReactiveController {
private readonly menuItemController: MenuItemController;
private internalDisplayText: string | null = null;
private lastSelected = this.host.selected;
private lastSelected: boolean;
private firstUpdate = true;

/**
Expand Down Expand Up @@ -97,6 +97,7 @@ export class SelectOptionController implements ReactiveController {
private readonly host: ReactiveControllerHost & SelectOption,
config: SelectOptionConfig,
) {
this.lastSelected = this.host.selected;
this.menuItemController = new MenuItemController(host, config);
host.addController(this);
}
Expand Down

0 comments on commit 909360c

Please sign in to comment.