IE8 中的 jQuery droppables 是否还存在 bug?
我有一个页面,有一个选项卡式视图,下面包含 3 个可排序的列。 目前,选项卡没有任何关联的 jQuery 代码。 然而,我给了它们所有的 droppable 类,现在在 IE 中,如果在列之间拖动一段内容然后再次移动,jQuery 在尝试(我认为)访问 DOM 中的parentNode 时就会崩溃。 我发现这篇文章讨论了类似的问题,但一年了,指的是 IE7。 有谁知道IE8是否也有类似的问题?
更新:该错误在某种程度上与 UpdatePanels 有关...每一列都是一个单独的 updatepanel,如果我删除 updatepanels,页面将正常工作。
I have a page which has a tabbed view which contains 3 sortable columns below it. Currently, the tabs don't have any jQuery code associated. I gave them all the droppable class, however, and now in IE if a piece of content is dragged between columns and then moved again, jQuery blows up while trying (i think) to access the parentNode in the DOM. I found this article which discusses a similar problem, but is a year old and refers to IE7. Does any one know if there are similar issues in IE8?
UPDATE: The bug is somehow related to UpdatePanels...each of the columns is a seperate updatepanel, and if I remove the updatepanels the page works normally.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道是否有人还在关注这个,但我最终做的是在可排序的开始事件期间设置可放置的对象,并在可排序的停止事件期间销毁它们。 这解决了 IE 问题。
I don't know if anyone is still looking at this, but what I ended up doing was setting up the droppables during the sortable's start event, and destroying them during the sortable's stop event. This fixed the IE issue.