refactor(props): remove onConnectStop #2299

This commit is contained in:
moklick
2022-07-25 16:08:52 +02:00
parent 37b311851c
commit efedf04a56
7 changed files with 6 additions and 29 deletions
@@ -160,7 +160,6 @@ export function handleMouseDown({
}
function onMouseUp(event: MouseEvent) {
const { onConnectStop, onConnectEnd } = getState();
const { connection, isValid } = checkElementBelowIsValid(
event,
connectionMode,
@@ -171,13 +170,11 @@ export function handleMouseDown({
doc
);
onConnectStop?.(event);
if (isValid) {
onConnect?.(connection);
}
onConnectEnd?.(event);
getState().onConnectEnd?.(event);
if (elementEdgeUpdaterType && onEdgeUpdateEnd) {
onEdgeUpdateEnd(event);