Opened 7 years ago

Closed 7 years ago

#14684 closed bug (invalid)

Sortable: null reference when dragging to top of list

Reported by: mwilson64 Owned by: mwilson64
Priority: minor Milestone: none
Component: ui.sortable Version: 1.11.4
Keywords: Cc:
Blocked by: Blocking:


We have a sortable list in which the first item cannot be moved (ui_state_disabled) and nothing can be moved above it. If an item is dragged above the first item, we get the
the following JavaScript error in the _clear function:

line 14744

Unable to get property 'removeChild' of undefined or null reference

The parentNode is null resulting in the error. Similar code appears at line 13963 in the cancel function, but it is checking to see if parentNode exists before
performing the removeChild.

Change History (4)

comment:1 Changed 7 years ago by Scott González

Owner: set to mwilson64
Status: newpending

Can you please provide a reduced test case showing the problem?

comment:2 Changed 7 years ago by mwilson64

Status: pendingnew

I've tried creating a jsFiddle that will recreate the issue and have not be able to do so.

Any recommendations are appreciated.

comment:3 Changed 7 years ago by Scott González

Status: newpending

If you can't recreate it, I'm not sure how we can try to fix it. I also see that you're changing the internals of the widget, so that may be related. Until we have a valid reduced test case showing the problem, there's not much we can do.

comment:4 Changed 7 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.