diff --git a/packages/overlay/src/App.vue b/packages/overlay/src/App.vue index 50ba71cee..e5ca213ff 100644 --- a/packages/overlay/src/App.vue +++ b/packages/overlay/src/App.vue @@ -75,7 +75,7 @@ onDevToolsConnected(() => { }) addEventListener('keyup', (e) => { - if (e.key.toLowerCase() === 'escape' && vueInspector.value?.enabled) { + if (e.key?.toLowerCase() === 'escape' && vueInspector.value?.enabled) { vueInspector.value?.disable() } })