Sortable issues - insert area doesn't show and dragging item drags list
I have a list that works fine using everything except IE 11. A user trying to drag an item into a list doesn't get the insert area and when trying to move an item in the list to a new location, the entire list drags (see screenshot).
The "Do you have a symptom..." item is being dragged, but the entire "General Heart Failure..." list is moving.
Since I'm new to jquery and I can't recreate the issue, I'm a bit lost as to how to resolve the problem.
Edit: here's the relevant script:
- <td valign="top" style="width: 75%;">
- <script type="text/javascript">
- $(document).ready(function () {
- $("#SectionRepeater").sortable({
- items: "div.SortableSection",
- forcePlaceholderSize: true,
- placeholder: "placeHolder"
- });
- $("div.Draggable").each(function () {
- $(this).draggable({
- connectToSortable: ".List",
- helper: "clone",
- revert: "invalid"
- });
- });
- $(".List").each(function (index, value) {
- $(this).attr("index", index);
- $(this).attr("id", "List" + index);
- var ListIndex = index
- $(this).children(".ListItem").each(function (index, value) {
- $(this).attr("class", "ListItem ListItem" + ListIndex);
- $(this).attr("id", "SectionQuestion_" + index);
- });
- $(this).sortable({
- items: "div.ListItem" + ListIndex,
- forcePlaceholderSize: true,
- placeholder: "placeHolder",
- receive: function (event, ui) {
- $(this).children(".Draggable").each(function (index, value) {
- $(this).attr("class", "ListItem ListItem" + ListIndex);
- });
- }
- });
- });
- });
- </script>
- <input type="hidden" runat="server" id="SectionOrder" />
- <div class="ui-tabs ui-widget ui-widget-content ui-corner-all" style="height: 600px; overflow-y: scroll;">
- <div id="SectionRepeater">
- <asp:Repeater runat="server" ID="rpSections" OnItemDataBound="rpSections_ItemDataBound">
- <ItemTemplate>
- <div id="Section_<%# %>"
- class="SortableSection">
- <div style="float: right; margin-top: -3px;">
- <asp:LinkButton name="<%# %>"
- <uc1:ctrlQTemplateSection runat="server" ID="ctrlSection" CurrentQTemplateSection="<%# Container.DataItem %>" />
- </div>
- </ItemTemplate>
- </asp:Repeater>
- </div>
-
- </div>
- </td>