Skip to content

Commit 565590e

Browse files
committed
fix(input): use event.data instead of event.key for chinese characters
1 parent d63e612 commit 565590e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Input.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ onInputData((evt) => {
166166
) {
167167
text.value
168168
= text.value.slice(0, cursorPosition.value)
169-
+ event.key
169+
+ evt.data
170170
+ text.value.slice(cursorPosition.value)
171171
cursorPosition.value++
172172
}

0 commit comments

Comments
 (0)