Bug Tracker

Opened 12 years ago

Closed 12 years ago

#2938 closed bug (invalid)

inst is undefined when dropping a li containing a ul

Reported by: Smeagol Owned by:
Priority: major Milestone: 1.3
Component: core Version: 1.2.5
Keywords: Cc:
Blocked by: Blocking:

Description

When testing out draggables and droppables i got an error when dragging and dropping a list item containing an unordered list just when i'm dropping the list item. It works fine when dragging and dropping a list item without an unordered list

The error is "inst is undefined" and it's reported at line 874 in ui droppable widget in the drop event ( if(inst.options.greedy && $.ui.intersect(draggable, $.extend(inst, { offset: inst.element.offset() }), inst.options.tolerance)) {) in the jquery ui file.

Change History (2)

comment:1 in reply to:  description Changed 12 years ago by Smeagol

Replying to Smeagol:

When testing out draggables and droppables i got an error when dragging and dropping a list item containing an unordered list just when i'm dropping the list item. It works fine when dragging and dropping a list item without an unordered list

The error is "inst is undefined" and it's reported at line 874 in ui droppable widget in the drop event ( if(inst.options.greedy && $.ui.intersect(draggable, $.extend(inst, { offset: inst.element.offset() }), inst.options.tolerance)) {) in the jquery ui file.

might have something to do with not resulting in proper html or something cause it started to work once i made sure the dragged list item ended up in an unordered list instead of under a list item

comment:2 Changed 12 years ago by flesler

Resolution: invalid
Status: newclosed

This is a jQuery UI issue.

Please use their bug tracker: http://ui.jquery.com/bugs

Note: See TracTickets for help on using tickets.