From c1401662e994673fd46f15c900dc289574ccb842 Mon Sep 17 00:00:00 2001 From: mehunk Date: Mon, 16 Aug 2021 10:05:08 +0800 Subject: [PATCH] fix(mentions): chinese or japanese input error --- components/vc-mentions/src/Mentions.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/vc-mentions/src/Mentions.jsx b/components/vc-mentions/src/Mentions.jsx index 91a5d9a66a..a3c5b35141 100644 --- a/components/vc-mentions/src/Mentions.jsx +++ b/components/vc-mentions/src/Mentions.jsx @@ -115,6 +115,9 @@ const Mentions = { const { measureText: prevMeasureText, measuring } = this.$data; const { prefix = '', validateSearch } = this.$props; const target = event.target; + if (target.composing) { + return; + } const selectionStartText = getBeforeSelectionText(target); const { location: measureIndex, prefix: measurePrefix } = getLastMeasureIndex( selectionStartText,