fix(control): handle_enter wasn't connected to valid_state

This commit is contained in:
E44
2026-01-14 19:06:38 +01:00
parent 1c59b40971
commit 80cee15576
@@ -61,7 +61,7 @@
} }
function handle_keydown(event: KeyboardEvent) { function handle_keydown(event: KeyboardEvent) {
if (event.key !== 'Enter') return; if (event.key !== 'Enter' || !current_valid) return;
if (enter_mode === 'focus_next') { if (enter_mode === 'focus_next') {
event.preventDefault(); event.preventDefault();