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

Lines changed: 3 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy