Skip to content

Commit

Permalink
fix: removed unneeded prop
Browse files Browse the repository at this point in the history
  • Loading branch information
kouts committed Jan 19, 2022
1 parent beb57f3 commit 4c84f90
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/SearchInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ export default defineComponent({
searchIcon: defaultBoolean(),
shortcutIcon: defaultBoolean(),
clearIcon: defaultBoolean(),
escapeEnabled: defaultBoolean(),
clearOnEsc: defaultBoolean(),
blurOnEsc: defaultBoolean(),
selectOnFocus: defaultBoolean(),
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4c84f90

Please sign in to comment.