Skip to content

Commit e0f3924

Browse files
don9x2Ebackportbot[bot]
authored andcommitted
Fix IME composition handling for option inputs
Signed-off-by: don9x2E <revan@kakao.com>
1 parent 51a9cd6 commit e0f3924

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

src/components/Questions/AnswerInput.vue

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
@input="debounceOnInput"
2323
@keydown.delete="deleteEntry"
2424
@keydown.enter.prevent="focusNextInput"
25-
@compositionstart="onCompositionEnd"
25+
@compositionstart="onCompositionStart"
2626
@compositionend="onCompositionEnd" />
2727

2828
<!-- Actions for reordering and deleting the option -->
@@ -225,7 +225,10 @@ export default {
225225
/**
226226
* Request a new answer
227227
*/
228-
focusNextInput() {
228+
focusNextInput(e) {
229+
if (this.isIMEComposing || e?.isComposing) {
230+
return
231+
}
229232
if (this.index <= this.maxIndex) {
230233
this.$emit('focus-next', this.index)
231234
}
@@ -238,6 +241,10 @@ export default {
238241
* @param {Event} e the event
239242
*/
240243
async deleteEntry(e) {
244+
if (this.isIMEComposing || e?.isComposing) {
245+
return
246+
}
247+
241248
if (this.answer.local) {
242249
return
243250
}

0 commit comments

Comments
 (0)