fix(web): self-loops survive the drop click #100
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/selfloop-click"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #97
onnodeclickinFaCanvas.sveltenow ignores clicks whileeditor.pendingConnectionis open: a self-loop drag ends with a trailing click on the source node, which previously ranselectState()→clearSelection()and wiped the pendingq0 → q0transition editor before it could be used.TerminalEdge.sveltealready renders the self-loop arc; no rendering changes needed.Verified with playwright (dev server :5176): self-loop drag opens
NEW TRANSITION q0 → q0, typinga+ Enter commits a labeled self-loop arc on q0, a two-state drag still opensNEW TRANSITION q0 → q1, and clicking a state body still selects it.bun run checkclean, 82 tests pass.