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.
Description
While using some IMEs - e.g. Pinyin (Simplified), Japanese Hiragana - updating the input value with a masked value while input text is being composed was causing text to be duplicated or for cursor positioning to be incorrectly updated. PR causes input events related to text composition to be ignored resulting in formatting and masking only being applied when the input composition is completed and text is inserted by the browser.
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.
Description
While using some IMEs - e.g. Pinyin (Simplified), Japanese Hiragana - updating the input value with a masked value while input text is being composed was causing text to be duplicated or for cursor positioning to be incorrectly updated. PR causes input events related to text composition to be ignored resulting in formatting and masking only being applied when the input composition is completed and text is inserted by the browser.
Checklist