The diff below shows a small activity sidebar for Vue 3. After a recent change, the panel has become unstable: when input data changes, the screen does not always reflect the current state, and keyboard behavior becomes unpredictable over time.
open, employeeId, and onClose callback flags through props.fetchActivity.employeeId.Escape key should close the panel only while it is open.emp-1.employeeId to emp-2.Escape after closing or after repeated openings.employeeId and open without losing reactivity.Escape handler.Escape must not trigger old handlers.3.5.13, Composition API, <script setup lang="ts">5.8.2fetchActivity(employeeId: string): Promise<ActivityItem[]>open and employeeId without recreating the componentUse line comments to explain the problem, its impact, the fix and how to test it.