Skip to content

Commit

Permalink
fix(module:select): cursor abnormal in nz-select with nzDisabled (#5716)
Browse files Browse the repository at this point in the history
* fix: cursor abnormal under nz-select with nzDisabled

* docs: fix markdown format

close  #5709
  • Loading branch information
Eve-Sama committed Sep 10, 2020
1 parent 4911e36 commit 0d1f027
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/select/doc/index.zh-CN.md
Expand Up @@ -31,7 +31,7 @@ import { NzSelectModule } from 'ng-zorro-antd/select';
| --- | --- | --- | --- | --- |
| `[ngModel]` | 当前选中的 nz-option 的 nzValue 值,可双向绑定,当 `nzMode``multiple``tags` 时,ngModel 为数组 | `any \| any[]` | - |
| `[compareWith]` |[SelectControlValueAccessor](https://angular.io/api/forms/SelectControlValueAccessor#caveat-option-selection) 相同 | `(o1: any, o2: any) => boolean` | `(o1: any, o2: any) => o1===o2` |
| `[nzAutoClearSearchValue]` | 是否在选中项后清空搜索框,只在 `mode``multiple``tags` 时有效。 | boolean | `true` |
| `[nzAutoClearSearchValue]` | 是否在选中项后清空搜索框,只在 `mode``multiple``tags` 时有效。 | `boolean` | `true` |
| `[nzAllowClear]` | 支持清除 | `boolean` | `false` |
| `[nzBorderless]` | 是否无边框 | `boolean` | `false` ||
| `[nzOpen]` | 下拉菜单是否打开,可双向绑定 | `boolean` | `false` |
Expand Down
2 changes: 1 addition & 1 deletion components/select/select.component.ts
Expand Up @@ -149,7 +149,7 @@ export type NzSelectSizeType = 'large' | 'default' | 'small';
'[class.ant-select-sm]': 'nzSize === "small"',
'[class.ant-select-show-arrow]': `nzShowArrow && nzMode === 'default'`,
'[class.ant-select-disabled]': 'nzDisabled',
'[class.ant-select-show-search]': `nzShowSearch || nzMode !== 'default'`,
'[class.ant-select-show-search]': `(nzShowSearch || nzMode !== 'default') && !nzDisabled`,
'[class.ant-select-allow-clear]': 'nzAllowClear',
'[class.ant-select-borderless]': 'nzBorderless',
'[class.ant-select-open]': 'nzOpen',
Expand Down

0 comments on commit 0d1f027

Please sign in to comment.