Skip to content

sortProperties override users sorting on data change #697

@Julusian

Description

@Julusian

Griddle version

1.6.0

Expected Behavior

When changing the data prop on the data, the users sorting selection should remain

Actual Behavior

From the docs: "The sortProperties prop defines the default sort options for Griddle. " implying that the sortProperties should not get reapplied when changing other props.

Steps to reproduce

  • Specify the following on a table sortProperties:[ { id:"name" } ]}
  • Sort the table on another column
  • Change the value of any other prop on the Griddle element
  • Observe that the default sort gets reapplied.

The same also happens with pageProperties

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions