From 77f1ed14c539abffaca433b0f3a793181e816c08 Mon Sep 17 00:00:00 2001 From: Lars Date: Sun, 12 Apr 2026 12:29:52 +0200 Subject: [PATCH] fix: Cursor-Problem beim Frage-ID Editieren MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: Cursor springt nach jedem Tastendruck aus dem ID-Feld Ursache: key={q.id} in QuestionEditor map - Wenn ID geändert wird, ändert sich der React Key - React unmountet alte Component und mountet neue - Focus geht verloren Lösung: key={idx} verwenden - Stabiler Key während Editing - Komponente bleibt gemountet - Cursor bleibt im Feld UX: Jetzt kann man IDs flüssig editieren ohne Unterbrechung Co-Authored-By: Claude Opus 4.6 --- .../components/workflow/panels/QuestionAugmentationPanel.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/workflow/panels/QuestionAugmentationPanel.jsx b/frontend/src/components/workflow/panels/QuestionAugmentationPanel.jsx index 2def832..a2f4d44 100644 --- a/frontend/src/components/workflow/panels/QuestionAugmentationPanel.jsx +++ b/frontend/src/components/workflow/panels/QuestionAugmentationPanel.jsx @@ -47,7 +47,7 @@ export function QuestionAugmentationPanel({ node, onChange }) { {questions.map((q, idx) => ( handleQuestionChange(idx, field, value)}