I have this code: https://jsfiddle.net/ks10hwj4/. It consists of a list
<ul class="files-list list-group items-list ui-selectable" style="min-height:200px;">
with each element being like
<li class="file-item0 list-group-item list-group-item-action ui-widget-content ui-selectee ui-selected">
<div class="row ui-selectee active ui-selected">
<div class="col-12 col-lg-9 vertical-align ui-selectee active ui-selected">
a folder
</div>
</div>
then I call the selectable function telling it to modify the active class of bootstrap when selected
$('.files-list').selectable({
cancel: ".ui-splitselect-item .ui-splitselect-handle-drag",
selecting: function (event, ui) {
$(ui.selecting).addClass('active');
},
unselecting: function (event, ui) {
$(ui.unselecting).removeClass('active');
},
selected: function (event, ui) {
$(ui.selected).addClass('active');
},
unselected: function (event, ui) {
$(ui.unselected).removeClass('active');
}
});
It works perfectly but it does not show the box when I select the files. I mean, I can't see the box the mouse is generating while clicking and moving around. What could be the problem?