Skip to content

The Table component seems not updating the AntSorterResult onClick on column for sort - during the onChange event parameters are not updating #6578

@LuXDAmore

Description

@LuXDAmore
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.2.20

Environment

Chrome 113.0.5653.0, Vue 3.3.2

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  • Define a sortOrder: "descend" (or "ascend") in a column;
  • Click on the table-head column-head to change the sorting value;
  • Check the table onChange event, the AntSorterResult is not updating, so it's impossible to update external values related to this one.

What is expected?

It's expected that the AntSorterResult is updated with the new sorting values.

What is actually happening?

AntSorterResult order is not updating and the sorting column key/id is setted to undefined.


Check the console log in the reproduction example to see it.

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