Skip to content

Commit bccc119

Browse files
scott-vanbrugRonaldJerez
authored andcommitted
fix(core.js): ignore composition text input events
Ignore events triggered while composing text with an input method editor. Fixes up buggy behavior with some IMEs resulting in incorrect cursor placement or duplicated inputs while updating the input with a masked value.
1 parent be91254 commit bccc119

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export function inputHandler(event) {
5757
const { target, detail } = event
5858

5959
// We dont need to run this method on the event we emit (prevent event loop)
60-
if (detail && detail.facade) {
60+
if ((detail && detail.facade) || event.inputType === 'insertCompositionText') {
6161
return false
6262
}
6363

0 commit comments

Comments
 (0)