Skip to content

Commit

Permalink
fix(module:autocomplete): AOT compiler requires public properties
Browse files Browse the repository at this point in the history
  • Loading branch information
hsuanxyz committed Jun 20, 2018
1 parent 1a4332a commit d599f1d
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 d599f1d

Please sign in to comment.