Open Marenek opened 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.
Sorry, do you really know what "closest()" does?
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.
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.
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.