Skip to content

Commit

Permalink
fix: set tabindex default value to be 0
Browse files Browse the repository at this point in the history
  • Loading branch information
DrZhong committed Dec 4, 2018
1 parent b11834d commit 11581f2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/select/doc/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Select component to select value from options.
| `[nzNotFoundContent]` | Specify content to show when no result matches.. | string | 'Not Found' |
| `[nzPlaceHolder]` | Placeholder of select | string | - |
| `[nzShowSearch]` | Whether show search input in single mode. | boolean | false |
| `[tabindex]` | make nz-select can be set tabindex attr | number | 1 |
| `[tabindex]` | make nz-select can be set tabindex attr | number | 0 |
| `[nzSize]` | Size of Select input. `default` `large` `small` | string | default |
| `(ngModelChange)` | Current selected nz-option value change callback. | `EventEmitter<any[]>` | - |
| `(nzOpenChange)` | dropdown expand change callback | `EventEmitter<boolean>` | false |
Expand Down
2 changes: 1 addition & 1 deletion components/select/doc/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ title: Select
| `[nzNotFoundContent]` | 当下拉列表为空时显示的内容 | string | - |
| `[nzPlaceHolder]` | 选择框默认文字 | string | - |
| `[nzShowSearch]` | 使单选模式可搜索 | boolean | false |
| `[tabindex]` | 使select可以设置tabindex | number | 1 |
| `[tabindex]` | 使select可以设置tabindex | number | 0 |
| `[nzSize]` | 选择框大小,可选 `large` `small` | string | default |
| `(ngModelChange)` | 选中的 nz-option 发生变化时,调用此函数 | `EventEmitter<any[]>` | - |
| `(nzOpenChange)` | 下拉菜单打开状态变化回调 | `EventEmitter<boolean>` | - |
Expand Down
2 changes: 1 addition & 1 deletion components/select/nz-select-top-control.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class NzSelectTopControlComponent {
@Input() nzOpen = false;
// tslint:disable-next-line:no-any
@Input() compareWith: (o1: any, o2: any) => boolean;
@Input() tabindex = 1;
@Input() tabindex = 0;
@Input()
// tslint:disable-next-line:no-any
set nzListOfSelectedValue(value: any[]) {
Expand Down
2 changes: 1 addition & 1 deletion components/select/nz-select.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export class NzSelectComponent implements ControlValueAccessor, OnInit, AfterVie
/** https://github.com/angular/angular/pull/13349/files **/
// tslint:disable-next-line:no-any
@Input() compareWith = (o1: any, o2: any) => o1 === o2;
@Input() tabindex = 1;
@Input() tabindex = 0;

@Input()
set nzDropdownClassName(value: string) {
Expand Down

0 comments on commit 11581f2

Please sign in to comment.