Skip to content

Commit 69c5d6b

Browse files
committed
Restore renderIntervals() for pace field changes
Pace field uses 'change' event (fires on blur), so keyboard is already closed when handler runs. Safe to use renderIntervals() to properly update the speed field display. Speed field still uses direct DOM update to keep keyboard open during typing. https://claude.ai/code/session_01PX2BfeXuZgwAnfHckfS3Gw
1 parent fa01e47 commit 69c5d6b

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/inner_templates/workouteditor/workout-editor-app.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -919,13 +919,10 @@
919919
const field = FIELD_DEFS.find(f => f.key === key);
920920
if (field && field.syncWith) {
921921
state.intervals[index][field.syncWith] = speed;
922-
// Update speed field directly without re-render to keep focus
923-
const speedInput = document.querySelector(`input[data-index="${index}"][data-key="${field.syncWith}"]`);
924-
if (speedInput) {
925-
speedInput.value = speed;
926-
}
927922
}
928923
}
924+
// Re-render to update speed field (pace uses 'change' event so keyboard is already closed)
925+
renderIntervals();
929926
updateChart();
930927
updateStatus();
931928
return;

0 commit comments

Comments
 (0)