Skip to content

Commit ae80974

Browse files
jinyongpzernonia
andauthored
fix(TagsInput): korean IME duplicate tags with nextTick in onCompositionEnd (#2045)
* fix(TagsInput): replace requestAnimationFrame with nextTick in onCompositionEnd * fix: change compositionEnd on listbox --------- Co-authored-by: zernonia <zernonia@gmail.com>
1 parent f9d74bc commit ae80974

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/core/src/Listbox/ListboxRoot.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ function onCompositionStart() {
227227
isComposing.value = true
228228
}
229229
function onCompositionEnd() {
230-
requestAnimationFrame(() => {
230+
nextTick(() => {
231231
isComposing.value = false
232232
})
233233
}

packages/core/src/TagsInput/TagsInputInput.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function onCompositionStart() {
5151
isComposing.value = true
5252
}
5353
function onCompositionEnd() {
54-
requestAnimationFrame(() => {
54+
nextTick(() => {
5555
isComposing.value = false
5656
})
5757
}

0 commit comments

Comments
 (0)