jQuery UI sortable() - listitem jumps to top in Safari and Chrome

后端 未结 7 839
走了就别回头了
走了就别回头了 2020-12-17 09:23

I have a sortable unordered list on the bottom of my page, which works perfect in Firefox. However, in Safari/Chrome the grabbed listitem jumps instantly to the top of the p

7条回答
  •  半阙折子戏
    2020-12-17 10:14

    I had the exact same problem with sortable items jumping to the top in Chrome while the same code worked fine in Firefox. The issue was the containing element had no explicit height. Once I added a height to it, the item no longer jumped around.

提交回复
热议问题