Skip to content

Commit

Permalink
fix: enter key behavior conflict with IME in search box (#3454)
Browse files Browse the repository at this point in the history
  • Loading branch information
bonyuta0204 committed Jan 15, 2024
1 parent 367c603 commit cd8ee6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/client/theme-default/components/VPLocalSearchBox.vue
Expand Up @@ -322,6 +322,8 @@ onKeyStroke('ArrowDown', (event) => {
const router = useRouter()
onKeyStroke('Enter', (e) => {
if (e.isComposing) return
if (e.target instanceof HTMLButtonElement && e.target.type !== 'submit')
return
Expand Down

0 comments on commit cd8ee6f

Please sign in to comment.