Hey I\'m using Angular material Drag and drop. Everything is working fine but after each drag it triggers the click event and it\'s really annoying. How can I stop this?
You can use a boolean to keep a track of this situation:
var dragging = false; (cdkDragStarted): function(event, ui) { dragging = true; ...your code } (click): function(event) { if (!dragging) { ...your code } else { dragging = false; } });