How to debug a jQuery nested sortable draggable element?

前端 未结 3 1490
情歌与酒
情歌与酒 2021-02-09 07:06

The first part allows you to first drag an element into a sortable div, which is working fine. I then want to have that div become sortable as well so I can drag new elements (p

3条回答
  •  时光取名叫无心
    2021-02-09 07:19

    I agree with Nick P in that I think it's a bug in sortable. The other items being sorted lose the sort-ability when sorting finishes.

    I added

    $('.part-holder').sortable('refresh');
    

    before

    $('.part-holder', ui.item).sortable({
    

    which worked for me in Chrome 11, FF3.7 and FF4.0b12pre.

提交回复
热议问题