Skip to content

table: rowSelections preserved the selections even when pagination changed #2707

@bug4j

Description

@bug4j

Problem:

while i use rowSelection option to enable row select, first i select some rows, then i change the page num , that's where magic thing happend, i still have some rows selected , the selected row indexes seems to be preserved even table data has changed ,which is not what i want;

expectation:
no rows will select when pagination changed;
btw,do we have api to select row via javascript ? i couldn't find any ones which can do the trick;

example:
here is an expample of how the problem appears, just change the page num and you'll konw what means:
https://codesandbox.io/s/vue-antd-template-ev3bg?file=/src/App.vue

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