拖动后取消点击

我有这样的拖动事件

$('.dragDiv').draggable({
    start:function(event,ui){
    },
    stop:function(event,ui){
        
    }
})
<script src="https://code.jquery.com/jquery-3.5.1.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<div style="background-color:yellow;width:100px;height:100px;" class='dragDiv'>
<a onclick='console.log("clicked");'>test</a>
</div>

In this case, dragDiv has the link 'test' inside.

If you drag the div by grabbing test link.

链接在拖动后触发。

我想在拖动后取消触发链接。

我该怎么做?