From 4c84f90e892da2b68aa93e44747e96c3c624510a Mon Sep 17 00:00:00 2001 From: Kouts Date: Wed, 19 Jan 2022 22:14:42 +0200 Subject: [PATCH] fix: removed unneeded prop --- src/SearchInput.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/SearchInput.vue b/src/SearchInput.vue index 2eba558..9e758fe 100755 --- a/src/SearchInput.vue +++ b/src/SearchInput.vue @@ -87,7 +87,6 @@ export default defineComponent({ searchIcon: defaultBoolean(), shortcutIcon: defaultBoolean(), clearIcon: defaultBoolean(), - escapeEnabled: defaultBoolean(), clearOnEsc: defaultBoolean(), blurOnEsc: defaultBoolean(), selectOnFocus: defaultBoolean(), @@ -118,7 +117,7 @@ export default defineComponent({ } const onKeydown = (e: KeyboardEvent) => { - if (props.escapeEnabled && e.key === 'Escape') { + if (e.key === 'Escape') { props.clearOnEsc && clear() if (props.blurOnEsc) { const el = inputRef.value as HTMLInputElement