Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Jul 8, 2019
1 parent a73d654 commit dad8d0e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
13 changes: 0 additions & 13 deletions src/app/components/autocomplete/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,6 @@ export class AutoComplete implements AfterViewChecked,AfterContentInit,DoCheck,O

@Input() immutable: boolean = true;

@Input() showOnFocus: boolean = false;

@Input() showOnFocusMode: string = 'blank';

@Input() showTransitionOptions: string = '225ms ease-out';

@Input() hideTransitionOptions: string = '195ms ease-in';
Expand Down Expand Up @@ -599,15 +595,6 @@ export class AutoComplete implements AfterViewChecked,AfterContentInit,DoCheck,O

onInputFocus(event) {
this.focus = true;
if (this.showOnFocus) {
let queryValue = this.multiple ? this.multiInputEL.nativeElement.value : this.inputEL.nativeElement.value;

if (this.showOnFocusMode === 'blank')
this.search(event, '');
else if (this.showOnFocusMode === 'current')
this.search(event, queryValue);
}

this.onFocus.emit(event);
}

Expand Down
13 changes: 0 additions & 13 deletions src/app/showcase/components/autocomplete/autocompletedemo.html
Original file line number Diff line number Diff line change
Expand Up @@ -409,19 +409,6 @@ <h3>Properties</h3>
<td>Specifies the behavior dropdown button. Default "blank" mode
sends an empty string and "current" mode sends the input value.</td>
</tr>
<tr>
<td>showOnFocus</td>
<td>boolean</td>
<td>false</td>
<td>When enabled, autocomplete suggestions will be visible when input receives focus.</td>
</tr>
<tr>
<td>showOnFocusMode</td>
<td>string</td>
<td>blank</td>
<td>Specifies the behavior showOnFocus. Default "blank" mode
sends an empty string and "current" mode sends the input value.</td>
</tr>
<tr>
<td>baseZIndex</td>
<td>number</td>
Expand Down

0 comments on commit dad8d0e

Please sign in to comment.