We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd48e45 commit f52d781Copy full SHA for f52d781
src/components/CodeViewer/blog-flows/mindmap/App/index.tsx
@@ -86,8 +86,11 @@ function Flow() {
86
(event) => {
87
const { nodeInternals } = store.getState();
88
const targetIsPane = (event.target as Element).classList.contains('react-flow__pane');
89
+ const node = (event.target as Element).closest('.react-flow__node');
90
- if (targetIsPane && connectingNodeId.current) {
91
+ if (node) {
92
+ node.querySelector('input')?.focus({ preventScroll: true });
93
+ } else if (targetIsPane && connectingNodeId.current) {
94
const parentNode = nodeInternals.get(connectingNodeId.current);
95
const childNodePosition = getChildNodePosition(event, parentNode);
96
0 commit comments