See http://plnkr.co/edit/oKMWNEIo5uG01CJMxR7k?p=preview
I put a list of buttons inside a ui-sortable
directive, you can see it works fine if I use <a>
tag but not if I use <button>
. The drag gestures seem to be blocked by <button>
.
Anyone know the reason? Is there any difference between<a class='button'>
and <button class='button'>
?