jQuery-Ui: Cannot drag object outside of an accordion

前端 未结 5 1329
别跟我提以往
别跟我提以往 2020-12-11 04:11

I have a draggable object inside of an accordion widget. When dragging it, it\'s constrained its parent, the accordion element. I\'ve tried to use the \'containment\' option

5条回答
  •  再見小時候
    2020-12-11 04:41

    My answer applies to sortables, I think draggables should be similar. I was able to make it work by using 'clone' instead of the default 'orginal' and using appendTo: 'body'. It's weird because if you use original as the helper it doesn't seem to append the helper to the body even though you would think it should if you set appendTo:'body'. I hope you can get it working!

提交回复
热议问题