fix(core): emit node click event when drag was ended with no movement (#1522)
* fix(core): emit node click event when drag was ended with no movement * chore(changeset): add
This commit is contained in:
@@ -228,6 +228,12 @@ export function useDrag(params: UseDragParams) {
|
||||
|
||||
const eventEnd = (event: UseDragEvent) => {
|
||||
if (!dragStarted) {
|
||||
const node = findNode(id)
|
||||
|
||||
if (node) {
|
||||
emits.nodeClick({ node, event: event.sourceEvent })
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user