Skip to content

Commit

Permalink
fix(module:select): trigger keyboard on ios (#1653) (#1751)
Browse files Browse the repository at this point in the history
close #1752 close #1653 close #1274
  • Loading branch information
danielszenasi authored and vthinkxie committed Jul 1, 2018
1 parent 4005c7c commit 89d05f9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 1 addition & 2 deletions components/select/nz-select-top-control.component.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<ng-template #inputTemplate>
<input
#inputElement
autocomplete="off"
autocomplete="something-new"
class="ant-select-search__field"
(compositionstart)="isComposing = true"
(compositionend)="isComposing = false"
Expand Down Expand Up @@ -30,7 +30,6 @@
<!--show search-->
<div
*ngIf="nzShowSearch"
[style.display]="searchDisplay"
class="ant-select-search ant-select-search--inline">
<div class="ant-select-search__field__wrap">
<ng-template [ngTemplateOutlet]="inputTemplate"></ng-template>
Expand Down
4 changes: 0 additions & 4 deletions components/select/nz-select-top-control.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,6 @@ export class NzSelectTopControlComponent {
return this.inputValue || this.isComposing || this.nzListOfSelectedValue.length ? 'none' : 'block';
}

get searchDisplay(): string {
return this.nzOpen ? 'block' : 'none';
}

get selectedValueDisplay(): { [ key: string ]: string } {
let showSelectedValue = false;
let opacity = 1;
Expand Down

0 comments on commit 89d05f9

Please sign in to comment.