Skip to content

Commit b91291e

Browse files
committed
fix(combobox): fixed formatting lint errors.
1 parent 7e0688b commit b91291e

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

src/cdk-experimental/combobox/combobox.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ export class CdkCombobox<T = unknown> implements OnDestroy, AfterContentInit {
6767

6868
@Output('comboboxPanelOpened') readonly opened: EventEmitter<void> = new EventEmitter<void>();
6969
@Output('comboboxPanelClosed') readonly closed: EventEmitter<void> = new EventEmitter<void>();
70-
@Output('panelValueChanged') readonly panelValueChanged: EventEmitter<T | T[]> = new EventEmitter<T | T[]>();
70+
@Output('panelValueChanged')
71+
readonly panelValueChanged: EventEmitter<T | T[]> = new EventEmitter<T | T[]>();
7172

7273
private _overlayRef: OverlayRef;
7374
private _panelContent: TemplatePortal;

src/cdk-experimental/listbox/listbox.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
} from '@angular/cdk/testing/private';
1717
import {A, DOWN_ARROW, END, HOME, SPACE} from '@angular/cdk/keycodes';
1818
import {FormControl, FormsModule, ReactiveFormsModule} from '@angular/forms';
19-
import {CdkCombobox, CdkComboboxModule} from "@angular/cdk-experimental/combobox";
19+
import {CdkCombobox, CdkComboboxModule} from '@angular/cdk-experimental/combobox';
2020

2121

2222
describe('CdkOption and CdkListbox', () => {

src/cdk-experimental/listbox/listbox.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {SelectionChange, SelectionModel} from '@angular/cdk/collections';
2222
import {defer, merge, Observable, Subject} from 'rxjs';
2323
import {startWith, switchMap, takeUntil} from 'rxjs/operators';
2424
import {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';
25-
import {CdkComboboxPanel} from "@angular/cdk-experimental/combobox";
25+
import {CdkComboboxPanel} from '@angular/cdk-experimental/combobox';
2626

2727
let nextId = 0;
2828
let listboxId = 0;
@@ -283,7 +283,7 @@ export class CdkListbox<T> implements AfterContentInit, OnDestroy, OnInit, Contr
283283
ngAfterContentInit() {
284284
this._initKeyManager();
285285
this._initSelectionModel();
286-
this.registerWithPanel();
286+
this._registerWithPanel();
287287

288288
this.optionSelectionChanges.subscribe(event => {
289289
this._updateSelectionModel(event.source);
@@ -299,7 +299,7 @@ export class CdkListbox<T> implements AfterContentInit, OnDestroy, OnInit, Contr
299299
this._destroyed.complete();
300300
}
301301

302-
private registerWithPanel(): void {
302+
private _registerWithPanel(): void {
303303
if (this._parentPanel === null || this._parentPanel === undefined) {
304304
if (this._explicitPanel !== null && this._explicitPanel !== undefined) {
305305
this._explicitPanel._registerContent(this.id, 'listbox');
@@ -391,7 +391,8 @@ export class CdkListbox<T> implements AfterContentInit, OnDestroy, OnInit, Contr
391391
this._explicitPanel.closePanel(data);
392392
}
393393
} else {
394-
option.selected ? this._parentPanel.closePanel(option.value) : this._parentPanel.closePanel();
394+
option.selected ?
395+
this._parentPanel.closePanel(option.value) : this._parentPanel.closePanel();
395396
}
396397
}
397398
}

0 commit comments

Comments
 (0)