Skip to content

Commit

Permalink
fix(Blog Index/Tag): 🐛 Fixing searchInput can't enter 'f' letter
Browse files Browse the repository at this point in the history
disable 'usingInput' since 'true' make it always check if input is focused
  • Loading branch information
bKoZii committed Sep 15, 2024
1 parent 3707311 commit c1e07b3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion pages/blog/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ const alertMessage = computed(() => {
})
defineShortcuts({
f: {
usingInput: true,
handler: () => {
document.getElementById('searchInput')?.focus()
}
Expand Down
1 change: 0 additions & 1 deletion pages/blog/tag/[tag].vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ watch(searchInput, () => {
defineShortcuts({
f: {
usingInput: true,
handler: () => {
document.getElementById('searchInput')?.focus()
}
Expand Down

1 comment on commit c1e07b3

@vercel
Copy link

@vercel vercel bot commented on c1e07b3 Sep 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

konkamon – ./

konkamon.vercel.app
konkamon-git-main-bkozii.vercel.app
konkamon-bkozii.vercel.app

Please sign in to comment.