NG-ZORRO / ng-zorro-antd

Angular UI Component Library based on Ant Design
https://ng.ant.design
MIT License
8.85k stars 3.9k forks source link

nz-table th [nzSortFn]="false" or [nzSortFn]="null" with server-side sorting enabled all the same shows sorting control arrows #6857

Open narsiliko opened 3 years ago

narsiliko commented 3 years ago

Reproduction link

https://codesandbox.io/s/frosty-perlman-4d2rs?file=/src/app/app.component.ts

Steps to reproduce

https://codesandbox.io/s/frosty-perlman-4d2rs?file=/src/app/app.component.ts

What is expected?

On \<nz-table> \<th>, when [nzSortFn]="false" or [nzSortFn]="null", sorting controls must not be shown

What is actually happening?

\<nz-table> \<th> [nzSortFn]="false" or [nzSortFn]="null" with server-side sorting enabled all the same shows sorting control arrows

Environment Info
ng-zorro-antd 12.0.1
Browser Chrome
CR903 commented 1 year ago

It works when I set it to undefined.

matijarmk commented 2 months ago

You can use [nzShowSort]="false|true" to show or hide sortting arrows