feat(editor): Overhaul handle rendering to allow dragging of plus button (no-changelog) (#10512)

This commit is contained in:
Alex Grozav
2024-08-26 10:32:39 +03:00
committed by GitHub
parent cd0c6d9b55
commit 351d8413e9
28 changed files with 623 additions and 170 deletions

View File

@@ -726,7 +726,12 @@ function onRevertCreateConnection({ connection }: { connection: [IConnection, IC
revertCreateConnection(connection);
}
function onCreateConnectionCancelled(event: ConnectStartEvent) {
function onCreateConnectionCancelled(event: ConnectStartEvent, mouseEvent?: MouseEvent) {
const preventDefault = (mouseEvent?.target as HTMLElement).classList?.contains('clickable');
if (preventDefault) {
return;
}
setTimeout(() => {
nodeCreatorStore.openNodeCreatorForConnectingNode({
connection: {