Browse Source

fix(mentions): chinese or japanese input error (#4524)

pull/4543/head
mehunk 3 years ago committed by GitHub
parent
commit
c7abe76939
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      components/vc-mentions/src/Mentions.jsx

3
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,

Loading…
Cancel
Save