当 DOM 失去焦点时,嵌套输入字段不会保存
我有一个输入框位于深度嵌套在多个类中的“卡”上。我希望能够允许用户在输入框失去焦点时保存他们的输入,本质上允许单击卡上的其他任何位置来保存输入框的当前值。目前,仅当我完全单击卡片和卡片列表区域之外时,此行为才有效。如何才能使单击输入字段之外的任何位置都可以保存当前值?我正在使用 jQuery、Kendo 和 Typescript
I have an input box located on a "card" that is deeply nested in multiple classes. I want to be able to allow a user to save their input when the input box loses focus, essentially allowing a click anywhere else on the card to save the current value of the input box. Currently this behavior works only if I click completely outside the card and list of cards area. How can I make it so clicking anywhere outside of the input field allows for the current value to be saved? I am using jQuery, Kendo, and typescript
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论