From d599f1d5607c3a49824bb6a90738ead936695d20 Mon Sep 17 00:00:00 2001 From: Hsuan Lee Date: Wed, 20 Jun 2018 11:04:39 +0800 Subject: [PATCH] fix(module:autocomplete): AOT compiler requires public properties close #1683 --- .../auto-complete/nz-autocomplete-trigger.directive.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/auto-complete/nz-autocomplete-trigger.directive.ts b/components/auto-complete/nz-autocomplete-trigger.directive.ts index 7fc96931e84..97208f01f1f 100644 --- a/components/auto-complete/nz-autocomplete-trigger.directive.ts +++ b/components/auto-complete/nz-autocomplete-trigger.directive.ts @@ -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; @@ -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') { @@ -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(); }