How to get event when user leaves keyboard on iOS Safari HTML input? - Stack Overflow

I have an input where in the browser, when you "type" on the keyboard, it does not update the

I have an input where in the browser, when you "type" on the keyboard, it does not update the UI with the input every keystroke. Only when you press "enter" or "blur" out of the input does it process the input and recompute other form values.

That works fine in Chrome on laptop.

However, on iOS Safari, I have to press the "return" button (not "done" button), to trigger the "enter" keyboard event. But when I press "done", my UI doesn't update and recompute stuff, telling me it is not receiving an "onblur" event.

Is there a way to capture on blur, or when the "done" key is pressed, on iOS Safari in the web/HTML? I am using React.js if that matters. I am also using onchange to update my input, not oninput (let me know if I should switch).

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744814084a4595221.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信