fix(core): trigger connect if end handle exist in state
This commit is contained in:
@@ -46,6 +46,7 @@ export function useHandle({
|
|||||||
connectionRadius,
|
connectionRadius,
|
||||||
connectOnClick,
|
connectOnClick,
|
||||||
connectionClickStartHandle,
|
connectionClickStartHandle,
|
||||||
|
connectionEndHandle,
|
||||||
nodesConnectable,
|
nodesConnectable,
|
||||||
autoPanOnConnect,
|
autoPanOnConnect,
|
||||||
findNode,
|
findNode,
|
||||||
@@ -197,7 +198,7 @@ export function useHandle({
|
|||||||
}
|
}
|
||||||
|
|
||||||
function onPointerUp(event: MouseTouchEvent) {
|
function onPointerUp(event: MouseTouchEvent) {
|
||||||
if ((closestHandle || handleDomNode) && connection && isValid) {
|
if ((closestHandle || handleDomNode || connectionEndHandle.value) && connection && isValid) {
|
||||||
if (!onEdgeUpdate) {
|
if (!onEdgeUpdate) {
|
||||||
emits.connect(connection)
|
emits.connect(connection)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user