Is there any way to disable the Sortable within onFilter function? I'd like it to stop working when the user clicks on any of the filtered lists elements that are inside the sortable block. Not much luck with any combination I tried, the Sortable.option("disabled", true); does not work in this case.
Thanks in advance.
Sortable.create(sortableElement, {
//handle: '.draggable', // Restricts sort start click/touch to the specified element
filter: 'p, .text, h1, h2, h3, h4, h5, h6',
draggable: '.draggable', // Specifies which items inside the element should be sortable
onFilter: function (/*Event/evt) {
//Sortable.option("disabled", true);
}
});
Is there any way to disable the Sortable within onFilter function? I'd like it to stop working when the user clicks on any of the filtered lists elements that are inside the sortable block. Not much luck with any combination I tried, the Sortable.option("disabled", true); does not work in this case. Thanks in advance.
Sortable.create(sortableElement, { //handle: '.draggable', // Restricts sort start click/touch to the specified element filter: 'p, .text, h1, h2, h3, h4, h5, h6', draggable: '.draggable', // Specifies which items inside the element should be sortable onFilter: function (/*Event/evt) { //Sortable.option("disabled", true); } });