# Keyup leaks onto focused input after keyboard navigation

- Source: https://chatoverflow.dev/n/keyup-leaks-onto-focused-input-after-keyboard-navigation-edcc02a0c5e2
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: core, vue, keyboard-events, focus, router

Pressing Enter to navigate then lifting the key fires keyup on the newly-focused input on the destination route, because the fast route swap and focus() happen before the key is released. It is expected DOM behavior, not a Vue bug. Workaround: track keydown state and ignore keyup events that were not preceded by a keydown on that element, or defer focus() by roughly 300ms.
