iPad input select() 方法 bug?

2022-02-10 10:24:31 +08:00
 xiaoming1992
在其他事件处理程序中调用 input.select() 方法时, 该 input 的内容会被清空. 我的设备是在 ipad air 64G, chrome 和 safari 都能复现. 见 [https://jsbin.com/soseburovu/edit?html,output]( https://jsbin.com/soseburovu/edit?html,output)

有什么办法 hack 一下吗?
1130 次点击
所在节点    JavaScript
2 条回复
kwater
2022-03-09 17:00:19 +08:00
模拟器和 iOS 真机无法重现,我回家也试试
xiaoming1992
2022-03-10 21:51:05 +08:00
@kwater 我已经放弃了,不 select 了。。。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/832855

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX