{"action":"created","issue":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/12737","repository_url":"https://api.github.com/repos/ant-design/ant-design","labels_url":"https://api.github.com/repos/ant-design/ant-design/issues/12737/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design/issues/12737/comments","events_url":"https://api.github.com/repos/ant-design/ant-design/issues/12737/events","html_url":"https://github.com/ant-design/ant-design/issues/12737","id":372120432,"node_id":"MDU6SXNzdWUzNzIxMjA0MzI=","number":12737,"title":"Table sorter gets stuck when render function is present on column","user":{"login":"kevinfling","id":1562439,"node_id":"MDQ6VXNlcjE1NjI0Mzk=","avatar_url":"https://avatars0.githubusercontent.com/u/1562439?v=4","gravatar_id":"","url":"https://api.github.com/users/kevinfling","html_url":"https://github.com/kevinfling","followers_url":"https://api.github.com/users/kevinfling/followers","following_url":"https://api.github.com/users/kevinfling/following{/other_user}","gists_url":"https://api.github.com/users/kevinfling/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinfling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinfling/subscriptions","organizations_url":"https://api.github.com/users/kevinfling/orgs","repos_url":"https://api.github.com/users/kevinfling/repos","events_url":"https://api.github.com/users/kevinfling/events{/privacy}","received_events_url":"https://api.github.com/users/kevinfling/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"zombieJ","id":5378891,"node_id":"MDQ6VXNlcjUzNzg4OTE=","avatar_url":"https://avatars1.githubusercontent.com/u/5378891?v=4","gravatar_id":"","url":"https://api.github.com/users/zombieJ","html_url":"https://github.com/zombieJ","followers_url":"https://api.github.com/users/zombieJ/followers","following_url":"https://api.github.com/users/zombieJ/following{/other_user}","gists_url":"https://api.github.com/users/zombieJ/gists{/gist_id}","starred_url":"https://api.github.com/users/zombieJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zombieJ/subscriptions","organizations_url":"https://api.github.com/users/zombieJ/orgs","repos_url":"https://api.github.com/users/zombieJ/repos","events_url":"https://api.github.com/users/zombieJ/events{/privacy}","received_events_url":"https://api.github.com/users/zombieJ/received_events","type":"User","site_admin":false},"assignees":[{"login":"zombieJ","id":5378891,"node_id":"MDQ6VXNlcjUzNzg4OTE=","avatar_url":"https://avatars1.githubusercontent.com/u/5378891?v=4","gravatar_id":"","url":"https://api.github.com/users/zombieJ","html_url":"https://github.com/zombieJ","followers_url":"https://api.github.com/users/zombieJ/followers","following_url":"https://api.github.com/users/zombieJ/following{/other_user}","gists_url":"https://api.github.com/users/zombieJ/gists{/gist_id}","starred_url":"https://api.github.com/users/zombieJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zombieJ/subscriptions","organizations_url":"https://api.github.com/users/zombieJ/orgs","repos_url":"https://api.github.com/users/zombieJ/repos","events_url":"https://api.github.com/users/zombieJ/events{/privacy}","received_events_url":"https://api.github.com/users/zombieJ/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-10-19T21:22:44Z","updated_at":"2018-11-02T01:40:52Z","closed_at":"2018-10-20T04:42:20Z","author_association":"NONE","body":"- [x] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.\r\n\r\n### Version\r\n3.10.1\r\n\r\n### Environment\r\nMacOS / Google Chrome Version 69.0.3497.100 (Official Build) (64-bit)\r\n\r\n### Reproduction link\r\n[https://codepen.io/anon/pen/YJvXrw](https://codepen.io/anon/pen/YJvXrw)\r\n\r\n### Steps to reproduce\r\n```\r\nconst columns = [{\r\n  title: 'Name',\r\n  dataIndex: 'name',\r\n  sorter: true, // This sorter gets stuck\r\n  key: 'name',\r\n  render: name => (<strong>{name}</strong>)\r\n}, {\r\n  title: 'Age',\r\n  dataIndex: 'age',\r\n  sorter: true, // This sorter works correctly\r\n  key: 'age',\r\n}];\r\n```\r\n\r\nEdit: This only seems to happen to the sort state when columns are inside render, so I believe it's related to [#12571](https://github.com/ant-design/ant-design/issues/12571).\r\n\r\n### What is expected?\r\nSort should toggle from ascend/descend/none.\r\n\r\n### What is actually happening?\r\nSorter gets stuck on descending sort.\r\n\r\n\r\n<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->"},"comment":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/comments/435243775","html_url":"https://github.com/ant-design/ant-design/issues/12737#issuecomment-435243775","issue_url":"https://api.github.com/repos/ant-design/ant-design/issues/12737","id":435243775,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTI0Mzc3NQ==","user":{"login":"gijo-varghese","id":23092846,"node_id":"MDQ6VXNlcjIzMDkyODQ2","avatar_url":"https://avatars1.githubusercontent.com/u/23092846?v=4","gravatar_id":"","url":"https://api.github.com/users/gijo-varghese","html_url":"https://github.com/gijo-varghese","followers_url":"https://api.github.com/users/gijo-varghese/followers","following_url":"https://api.github.com/users/gijo-varghese/following{/other_user}","gists_url":"https://api.github.com/users/gijo-varghese/gists{/gist_id}","starred_url":"https://api.github.com/users/gijo-varghese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gijo-varghese/subscriptions","organizations_url":"https://api.github.com/users/gijo-varghese/orgs","repos_url":"https://api.github.com/users/gijo-varghese/repos","events_url":"https://api.github.com/users/gijo-varghese/events{/privacy}","received_events_url":"https://api.github.com/users/gijo-varghese/received_events","type":"User","site_admin":false},"created_at":"2018-11-02T01:40:52Z","updated_at":"2018-11-02T01:40:52Z","author_association":"NONE","body":"@afc163 I'm facing the same issue. Moving it outside render function fixed the issue. But there are cases where props change and columns filers may change. Moving outside doesn't work in that situation"}}
{"actor":{"display_login":"gijo-varghese"}}