P粉3347213592023-09-02 00:28:01
const inputElem = document.getElementById('input')
inputElem.addEventListener('input', (ev) => {
console.log(ev);
alert(`e.data: ${ev.data}`);
});
<input id="input" type="text" placeholder="type something... " />
This works as expected on my iOS Safari 15.
Type a
in the input and you will see the warning printed:
ev.data: a