react-admin icon indicating copy to clipboard operation
react-admin copied to clipboard

Arrow for sortorder not appearing on header with sortBy

Open TomJannes opened this issue 8 years ago • 2 comments

What you were expecting: To see an arrow next to the sorted column header

What happened instead: No arrow indicating the sort direction

Steps to reproduce:

<List title={<ListTitle/>} {...props} filters={<LotenFilter/>}>
    <Datagrid>
        <ReferenceField label="Prop1" source="projectId" reference="projects" sortBy="prop1">
            <TextField source="prop1"/>
        </ReferenceField>
        <TextField label="Prop2" source="prop2"/>
    </Datagrid>
</List>

Environment

  • React-admin version: 2.3.0
  • Last version that did not exhibit the issue (if applicable):
  • React version: 16.4.2
  • Browser: chrome

TomJannes avatar Sep 11 '18 19:09 TomJannes

If i put sortBy on the TextField instead of the ReferenceField, the arrow is visible but on sort it will use the source of the ReferenceField as sort field.

TomJannes avatar Sep 11 '18 19:09 TomJannes

I'm having the same problem.

trsteel88 avatar Nov 26 '18 08:11 trsteel88