Skip to content

When deselecting multiple rows the last one is not getting unselected #47

@demetris-manikas

Description

@demetris-manikas

Hi.
Playing around with the plugin I noticed that when deselecting multiple items the last one remains selected.
I dug a bit into the code and noticed the following code that intentionally prevents the last row from being deselected.

// Deselect range - need to keep the clicked on row selected
indexes.splice( $.inArray( idx, indexes ), 1 );
dt[type+'s']( indexes ).deselect();

I checked the behavior of many programs and none acts like that.
Can you please explain the reasoning behind it?

Anyway I believe that this behavior should be configurable what is yours?
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions