Hi there.
I wasn't sure whether to post this here or in the Firefox forum, since the problem has only started happening since I upgraded to FF15 a couple of days ago.
I can demonstrate my problem if you take the source from the default example for the jQuery UI Sortable plugin at
http://jqueryui.com/demos/sortable/ (click on 'View Source') and then add a click function to the script, like this:
- <script>
$(function() {
$( "#sortable" ).sortable();
$( "#sortable" ).disableSelection();
$( "#sortable li" ).click(function() {
alert($(this).text() + " clicked!");
return false;
});
});
</script>
We now have a list which is sortable if you drag an item, or does something (shows an alert) if you click on an item.
This works fine in IE9 and did work in FF14. But now in FF15 if I drag an item it sorts AND does the click. Surely a drag should not trigger a click?
Is this a bug in jQuery? Or Firefox? Or in my code?
Thanks in advance.