Input-method is the blender of html input element.
This case tells you why: playground
The culprit
<input id="test-input" type="text" />
...
document.querySelector("#test-input").addEventListener("input", toUppercase)
function toUppercase(event) {
event.target.value = event.target.value.toUpperCase()
}
