Skip to content

Commit c7abe76

Browse files
authored
fix(mentions): chinese or japanese input error (#4524)
1 parent af0620d commit c7abe76

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

components/vc-mentions/src/Mentions.jsx

+3
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ const Mentions = {
115115
const { measureText: prevMeasureText, measuring } = this.$data;
116116
const { prefix = '', validateSearch } = this.$props;
117117
const target = event.target;
118+
if (target.composing) {
119+
return;
120+
}
118121
const selectionStartText = getBeforeSelectionText(target);
119122
const { location: measureIndex, prefix: measurePrefix } = getLastMeasureIndex(
120123
selectionStartText,

0 commit comments

Comments
 (0)