Skip to content
This repository was archived by the owner on Nov 25, 2024. It is now read-only.

Commit ccd5cca

Browse files
authored
chore: add IME support for SearchBox (#78)
1 parent 6130c59 commit ccd5cca

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/mean-spies-worry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@sveltejs/site-kit": patch
3+
---
4+
5+
chore: add IME support for SearchBox

packages/site-kit/src/lib/search/SearchBox.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ It appears when the user clicks on the `Search` component or presses the corresp
144144
<input
145145
autofocus
146146
on:keydown={(e) => {
147-
if (e.key === 'Enter') {
147+
if (e.key === 'Enter' && !e.isComposing) {
148148
/** @type {HTMLElement | undefined} */ (
149149
modal.querySelector('a[data-has-node]')
150150
)?.click();

0 commit comments

Comments
 (0)