Cannot select checkbox when text in table is selected with Firefox

Cannot select checkbox when text in table is selected with Firefox

tom99tom99 Posts: 48Questions: 10Answers: 0

If you go to https://datatables.net/extensions/select/examples/initialisation/checkbox.html and select some text inside the table, for example the text "Accountant", then nothing happens when you click on one of the checkboxes in the first column.

Checking the checkbox only works if you click on the space around the checkbox.

This happens only with Firefox (59.0), Chrome works fine. Is there a workaround?

Thanks!

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,112Questions: 1Answers: 2,583

    I'm also seeing this on FF 57.0.1 - very odd! One for @allan methinks.

  • Tester2017Tester2017 Posts: 145Questions: 23Answers: 17

    If you select 2 rows, then also in Chrome [Ubuntu, Version 62.0.3202.75 (Official Build) (64-bit)] you will not be able to check a checkbox.

  • tom99tom99 Posts: 48Questions: 10Answers: 0

    At least in Chrome, the text selection goes away with the 1st click on a checkbox. Then the 2nd click works.

  • allanallan Posts: 61,434Questions: 1Answers: 10,049 Site admin
    Answer ✓

    Thanks for raising this. I've committed a fix for this and it will be in the nightly shortly.

    There is still a small difference between Chrome and Firefox - in the former the text will deselect when clicking, while in Firefox it will remain selected.

    Allan

  • tom99tom99 Posts: 48Questions: 10Answers: 0

    Very cool! Thank you!

This discussion has been closed.