select extension, os style select on firefox behaves badly - bug or a feature ?

select extension, os style select on firefox behaves badly - bug or a feature ?

jdnilsonjdnilson Posts: 1Questions: 1Answers: 0

On firefox, select extension with 'os' style multiple select behaves poorly: SHIFT + click works fine, but for deselecting a row with CTRL + click it doesn't select / deselect additional row, instead individual cells are marked with border.

Example on js fiddle:
https://jsfiddle.net/jdnilson/yadzdL4h/8/

Example is copy/paste from
https://www.datatables.net/extensions/select/examples/initialisation/multi.html
only style: 'multi' is changed to style: 'os'.

I see in the description that CTRL + click is not explicitly mentioned as a functionality, so maybe this is not even an issue, but anyway - my question is if there is anything that can be done about it or should I just forget and move on ?

I'm asking because on Chrome it works perfectly.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,787Questions: 1Answers: 10,115 Site admin
    Answer ✓

    Thanks for flagging this up - I've just committed the required fix.

    It appears that Firefox has a helpful feature that will allow table cells to be selected automatically when ctrl/cmd clicked - that means that the text is selected and Select's check to see if text has been selected or not is impacted (Select won't select the row if you click and drag over it to select text).

    Allan

This discussion has been closed.