tests: add custom connection line component test

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-03-08 16:32:11 +01:00
committed by Braks
parent 50e3ddc11d
commit 7519b31b8f
4 changed files with 105 additions and 29 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ export default function useHandle({
if (!prevClosestHandle && !isValid && !handleDomNode) return resetRecentHandle(prevActiveHandle)
if (connection.source !== connection.target && handleDomNode) {
if (connection && connection.source !== connection.target && handleDomNode) {
resetRecentHandle(prevActiveHandle)
prevActiveHandle = handleDomNode