DataTables Select issue

DataTables Select issue

rob897rob897 Posts: 3Questions: 1Answers: 0

Here is the fiddle to show the issue.
https://jsfiddle.net/rob897/u3rd7a30/

If you check a couple of boxes, then hover and click drag to capture text from the table and then try clicking another checkbox, it will check but the selected row counter does not capture any more clicks.

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @rob897 ,

    Yep, I can reproduce that too, definitely looks wonky - we'll look into it.

    Cheers,

    Colin

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin

    Its fixed in the nightly of Select by this commit.

    Updated example.

    We'll get the bug fix release of Select out soon.

    Allan

  • rob897rob897 Posts: 3Questions: 1Answers: 0

    It appears we lost the selected count text in this nightly right now.

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin

    Sorry - the min.js version in the nightly appears not to be building at the moment. The non-min version works: https://jsfiddle.net/u3rd7a30/7/ .

    Allan

  • rob897rob897 Posts: 3Questions: 1Answers: 0

    Whats odd now is just by swapping out with the nightly when I click on a checkbox my application has a on change event that gets the table.rows('.selected').count()
    This works fine in jsfiddle, but its not adding the selected class to my tr tag.
    Any ideas?

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin

    No idea I'm afraid. Can you link to your page or modify the JSFiddle to reproduce the same result?

    There is one other issue I can think of with using "real" checkboxes, rather than images / characters like in the demos - if you programmatically select a row using row().select(), Select will not automatically check the checkbox.

    Thanks,
    Allan

This discussion has been closed.