전략편집기 수정
This commit is contained in:
@@ -94,7 +94,11 @@ export function findFlowNodeIdAtClientPoint(clientX: number, clientY: number): s
|
||||
for (const el of elementsUnderDragPoint(clientX, clientY)) {
|
||||
const nodeEl = el.closest('.react-flow__node') as HTMLElement | null;
|
||||
if (nodeEl) {
|
||||
const id = nodeEl.getAttribute('data-id');
|
||||
const id = nodeEl.getAttribute('data-id')
|
||||
?? nodeEl.dataset.id
|
||||
?? (nodeEl.id.startsWith('react-flow__node-')
|
||||
? nodeEl.id.slice('react-flow__node-'.length)
|
||||
: null);
|
||||
if (id) return id;
|
||||
}
|
||||
const handleEl = el.closest('[data-nodeid]') as HTMLElement | null;
|
||||
|
||||
Reference in New Issue
Block a user