Bug reportNov 27, 2026· 0:21· 14 views
React Flow: selection box absent after paste when clipboard was set before deselect
0:21 total
Comments · 0
Be the first to comment.
Bug reportby SceneRecap AI
mediumCopy-paste example: paste placement at the pointer position and drawing of the multi-node selection box (NodesSelection) after a pane click deselects nodes.
os: macOSdpr: 1url: /react/pro/copy-paste/index.htmllocale: en-USbrowser: Chromium 151.0.7922.34timezone: Europe/Berlinviewport: 1280x720page_title: React Flow Pro Example
Repro steps
- 1.Open the React Flow Pro copy-paste example (/react/pro/copy-paste/index.html). Nodes A, B and C are connected vertically.
- 2.Select nodes A and B. Clicks were logged at 4.4s and 5.8s. A and B then show a pink highlight inside a dashed selection box.
- 3.Press Control+c to copy the selection.
- 4.Press Control+v. This is the control case: the copy of A and B appears offset to the right with an edge and a dashed selection box.
- 5.Click the empty canvas near the lower left to deselect.
- 6.Press Control+v again.
Expected
The second paste should produce the same result as the first paste at 9.3s. A connected copy of A and B should appear, and both nodes should sit inside a visible dashed selection box.
Actual
After the second paste, only a single node A is visible at the lower left. It has a pink selected border and is cut off by the bottom of the viewport. No node B and no dashed selection box are visible. The state does not change through 19s.
Evidence
visualStarting state: nodes A, B and C are connected vertically. Cut, Copy and Paste buttons are at the top left.
visualNodes A and B are highlighted in pink inside a dashed selection box. The Cut and Copy buttons are styled as active.
visualControl case working: after Control+v at 9.3s, a pasted copy of A and B appears offset to the right, joined by an edge, inside a dashed selection box. The original nodes are deselected.
visualThe pasted A and B copy is still selected with the dashed selection box visible.
visualAfter the canvas click at 14.0s and Control+v at 14.9s, the earlier pasted copy is deselected. One new node A appears at the lower left with a pink border. It is clipped by the bottom edge of the viewport. No B node and no dashed selection box are visible.
visualThe lower left node A is still shown alone with no selection box. The cursor hovers over the original node B handle.
Issue markdown (copy-paste ready)
## Summary In the React Flow Pro copy-paste example, the first paste works. A second paste after clicking the canvas to deselect shows only node A at the lower left. No dashed selection box is visible, and node B is not visible. ## Environment - Chromium 151.0.7922.34, macOS - Viewport 1280x720, DPR 1 - URL: /react/pro/copy-paste/index.html ## Steps to reproduce 1. Open the copy-paste example. Nodes A, B and C are connected (0s). 2. Select nodes A and B. They show a dashed selection box (7s). 3. Press Control+c (8.9s). 4. Press Control+v (9.3s). **Control case:** the copy of A and B appears offset right inside a dashed selection box (11s). 5. Click the empty canvas near the lower left to deselect (14.0s). 6. Press Control+v again (14.9s). ## Expected The second paste should match the first one. A connected copy of A and B should appear inside a visible dashed selection box. ## Actual Only one node A appears at the lower left (15s). It has a pink selected border and is cut off by the bottom of the viewport. No node B and no dashed selection box are visible. Nothing changes through 19s. ## Evidence - 7s: A and B are selected inside a dashed box. - 11s: first paste works. The A and B copy is selected inside a dashed box. - 15s: second paste shows only a clipped node A at the lower left with no selection box. - 19s: the state is unchanged. ## Notes The second paste lands near the pointer position of the 14.0s click. The rest of the pasted content may be off screen below the viewport. No console or network data was captured. ## Suggested area Paste placement at the pointer position, and how the selection box is drawn after a pane click deselects nodes. *Recorded with SceneRecap.*
This report was written by SceneRecap from a screen recording. Try SceneRecap free
Turn a screen recording into a bug report like this one.
Repro steps, expected vs actual and the console and network evidence, each with a timestamp. On every plan, Free included.
Try SceneRecap free →