bootstrap-multiselect icon indicating copy to clipboard operation
bootstrap-multiselect copied to clipboard

Calling 'select' within rowCallback in Datatables disables option selection

Open alenb opened this issue 10 years ago • 0 comments

Hey there,

I've noticed that when you use $('.some-select').multiselect('select', 'somevalue') inside rowCallback in Datatables it disables selections. In other words, you can't select any other option in the multiselect. It's stuck on the option you've initially set it to using select.

I was forced to use something such as this:

$('.some-select').find('option[value="'+ value +'"]').attr('selected', true);
$('.some-select').multiselect('refresh');

Not sure if this is a bug or something else. I figured I'd leave a ticket incase someone else comes across something similar.

alenb avatar Jan 22 '16 02:01 alenb