You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the issues of this repository and believe that this is not a duplicate.
Reproduction link
Steps to reproduce
Open the codesandbox console and click sort on name, observe the log message.
"ascend/descend, but no column name
Object {filters: Object, sortOrder: null}"
What is expected?
The object should contain the "dataIndex" of the currently sorted column/columns
What is actually happening?
DataIndex is not available to the title render function so the ascending/descending information cannot be used to render a header for a specific column.
Other
This has already been mentioned here a couple of times: #11246 (comment)
Environment
Info
antd
3.23.4
React
16.9.0
System
Mac OS X Mojave
Browser
Chrome
The text was updated successfully, but these errors were encountered:
@afc163 There is no way to tell which column is sorted from the info argument that is passed in in your example. All we get is "ascend/descend" regardless of which column is currently sorted.
E.g. Sort the age column "ascending" and the the info object passed to the renderTitle function for the NAME column will only contain { sortOrder: "ascend" } even though the name column is not even sorted.
Reproduction link
Steps to reproduce
Open the codesandbox console and click sort on name, observe the log message.
"ascend/descend, but no column name
Object {filters: Object, sortOrder: null}"
What is expected?
The object should contain the "dataIndex" of the currently sorted column/columns
What is actually happening?
DataIndex is not available to the title render function so the ascending/descending information cannot be used to render a header for a specific column.
Other
This has already been mentioned here a couple of times: #11246 (comment)
The text was updated successfully, but these errors were encountered: