IME composition 2
-
compositionend vs input event order differs across browsers (isComposing guard)
The spec orders input before compositionend (Chrome and Safari follow it), but Firefox and Edge fire input after compositionend, so isComposing-based guards behave differently per browser.
-
insertCompositionText / isComposing can't single out the IME commit input event
Every input event during a composition, including the one that commits it on Enter, carries isComposing=true and inputType insertCompositionText, so code cannot detect the commit without also listening for compositionend.
Other stacks
← back to all 93 entries