camohub / jquery-sortable-lists

jQuery plugin to sorting lists also the tree structures.
MIT License
209 stars 60 forks source link

Add dual functionality of ignoreClass #67

Open Marenek opened 3 years ago

Marenek commented 3 years ago

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.

camohub commented 3 years ago

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.

Marenek commented 3 years ago

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

camohub commented 2 years ago

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.

Marenek commented 2 years ago

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.