Skip to content

Commit

Permalink
fix(module:autocomplete): AOT compiler requires public properties (#1686
Browse files Browse the repository at this point in the history
)

close #1683
  • Loading branch information
hsuanxyz authored and vthinkxie committed Jun 22, 2018
1 parent 43910f9 commit a1f326d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/auto-complete/nz-autocomplete-trigger.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export class NzAutocompleteTriggerDirective implements ControlValueAccessor, OnD
}
}

private handleKeydown(event: KeyboardEvent): void {
handleKeydown(event: KeyboardEvent): void {
const keyCode = event.keyCode;
const isArrowKey = keyCode === UP_ARROW || keyCode === DOWN_ARROW;

Expand Down Expand Up @@ -284,7 +284,7 @@ export class NzAutocompleteTriggerDirective implements ControlValueAccessor, OnD
}
}

private handleInput(event: KeyboardEvent): void {
handleInput(event: KeyboardEvent): void {
const target = event.target as HTMLInputElement;
let value: number | string | null = target.value;
if (target.type === 'number') {
Expand All @@ -298,14 +298,14 @@ export class NzAutocompleteTriggerDirective implements ControlValueAccessor, OnD
}
}

private handleFocus(): void {
handleFocus(): void {
if (this.canOpen()) {
this.previousValue = this._element.nativeElement.value;
this.openPanel();
}
}

private handleBlur(): void {
handleBlur(): void {
this._onTouched();
}

Expand Down

0 comments on commit a1f326d

Please sign in to comment.