From e0f3924472be977fb0e69dda05fd7ea377d7c122 Mon Sep 17 00:00:00 2001 From: don9x2E Date: Thu, 26 Feb 2026 10:35:44 +0900 Subject: [PATCH] Fix IME composition handling for option inputs Signed-off-by: don9x2E --- src/components/Questions/AnswerInput.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/components/Questions/AnswerInput.vue b/src/components/Questions/AnswerInput.vue index f0933a7d6..9ef6ab11e 100644 --- a/src/components/Questions/AnswerInput.vue +++ b/src/components/Questions/AnswerInput.vue @@ -22,7 +22,7 @@ @input="debounceOnInput" @keydown.delete="deleteEntry" @keydown.enter.prevent="focusNextInput" - @compositionstart="onCompositionEnd" + @compositionstart="onCompositionStart" @compositionend="onCompositionEnd" /> @@ -225,7 +225,10 @@ export default { /** * Request a new answer */ - focusNextInput() { + focusNextInput(e) { + if (this.isIMEComposing || e?.isComposing) { + return + } if (this.index <= this.maxIndex) { this.$emit('focus-next', this.index) } @@ -238,6 +241,10 @@ export default { * @param {Event} e the event */ async deleteEntry(e) { + if (this.isIMEComposing || e?.isComposing) { + return + } + if (this.answer.local) { return }