Merge pull request #2324 from fbieler/main

fix(validation): Remove css-classes if mouse moves directly to different handle.
This commit is contained in:
Moritz Klack
2022-08-05 17:47:06 +02:00
committed by GitHub
+1
View File
@@ -153,6 +153,7 @@ export function handleMouseDown({
}
if (connection.source !== connection.target && elementBelow) {
resetRecentHandle(recentHoveredHandle);
recentHoveredHandle = elementBelow;
elementBelow.classList.add('react-flow__handle-connecting');
elementBelow.classList.toggle('react-flow__handle-valid', isValid);