Firstly, thanks for the great module.

I'm having a (suprise suprise) issue with IE.

Links contained in sortable divs are not clickable.

Clicking the link raises the div in preparation for sorting.

the browser is not directed to the clicked link.

It's like the drag-drop functionality is overriding the click event on the links

any solution suggestions?

thanks,

DT

Comments

allarthoekstra’s picture

Hey there,

I am having the same problem. But sometimes the links ARE clickable in IE in my case, but in the other moment they are not. In the cases when the links are not working in IE, the issue is exactly what is described above. Any solutions?

Greetings,
Allart

salgar’s picture

The simplest solution is to specify a handle with whom the items can be dragged: Prepend the items with <span class="sortable-handle">&times;</span> and set ['#options']['handle'] of the sortable element to "span.sortable-handle".

My patch for #221150: Empty sortables not possible / Allow two sortables with shared items / Allow items containing form elements adds a new demo to interface_sortable_demos which demonstrates this.

Kind regards,

Salgar