From 9ee83f1aadbb759d6877a47f98744885f72cd2e7 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 240ad226e..426536ba3 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" /> @@ -295,7 +295,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, this.optionType) } @@ -308,6 +311,10 @@ export default { * @param {Event} e the event */ async deleteEntry(e) { + if (this.isIMEComposing || e?.isComposing) { + return + } + if (this.answer.local) { return }