fix(mentions): chinese or japanese input error (#4524)
parent
af0620d14e
commit
c7abe76939
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue