jquery-sortable-lists icon indicating copy to clipboard operation
jquery-sortable-lists copied to clipboard

Add dual functionality of ignoreClass

Open Marenek opened this issue 4 years ago • 4 comments

I have used draggable items in fix envelopes with set ignoreClass. After the jquery-sortable-lists upgrade it has stopped working and I have to freeze it to old version.

What about some option to define ignoreClass behavior?

Or allow to define ignoreClass and ignoreClosestClass or on other way ignoreClass and ignoreWithClass. Simply two conditions in code.

Marenek avatar Nov 23 '21 19:11 Marenek

IgnoreClass has to be set on all elements which should be ignored. It means its not enough to set it on parent element, it has to be set on all child element.

It is not about two conditions. It is about the chain of all element to the root element although there is no ignoreClass set.

camohub avatar Nov 30 '21 20:11 camohub

Sorry, do you really know what "closest()" does?

Marenek avatar Nov 30 '21 21:11 Marenek

What you think I dont know about closest()? It seems you dont understand what it means if there is NO ignoreClass in the chain of elements.

camohub avatar Dec 07 '21 20:12 camohub

Ok, both of us understand what closest() does. I have prepared examples of my case to explain it better. Look at https://www.kabinet.cz/stuff/html/jquery-sortable-lists/ please. There are two pages with the same code but different versions of script.

Marenek avatar Dec 08 '21 14:12 Marenek