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.
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.
Select/js/dataTables.select.js
Lines 695 to 697 in 36e53e4
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.