From e10f100bae05ce29e69639c829e954d936b849ba Mon Sep 17 00:00:00 2001 From: Scott Fan Date: Tue, 9 Jul 2024 09:32:02 +0800 Subject: [PATCH] fix(overlay): event's key null safety when fill out forms automatically (#502) --- packages/overlay/src/App.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() } })