Opened 13 years ago
Last modified 8 years ago
#5006 assigned bug
Sortable: incorrectly considers hidden elements as the clone element
Reported by: | michalm | Owned by: | mikesherov |
---|---|---|---|
Priority: | major | Milestone: | none |
Component: | ui.sortable | Version: | 1.7.2 |
Keywords: | sortable, placeholder, | Cc: | |
Blocked by: | Blocking: |
Description
Was recently working on a project when i came across some weird behaviour with draggables connected to sortables.
A simple demo is included. 5px border is to make the bug more visible.
What to look for:
- The draggable is losing its size, watch for the floating border.
- Dragging to the first column causes a second placeholder with size zero to appear in 'random' placec in the same sortable.
Fix: Disabling the hidden sortables. In the demo: $(".sortable:hidden").sortable('disable');
Comments: Static sizing the elements fixes problem 2, but not 1.
Attachments (1)
Change History (6)
Changed 13 years ago by
Attachment: | connectoToSortable.html added |
---|
comment:2 Changed 10 years ago by
Milestone: | TBD → 2.0.0 |
---|
comment:3 Changed 10 years ago by
Status: | new → open |
---|
confirmed in chrome 22: http://jsfiddle.net/ExbdP/2/
to reproduce:
- drag "drag me down" down to the first list and drop.
- Notice that the element that gets added doesn't contain the text "drag me down".
- Notice that while dragging, the text "drag me down" is multiline.
the problem goes away when the last line is uncommented.
comment:4 Changed 10 years ago by
Summary: | Draggables with connectToSortable showing strange behaviour when some of the sortables are hidden → Draggable: using connectToSortable shows strange behaviour when some of the sortables are hidden |
---|
comment:5 Changed 8 years ago by
Component: | ui.draggable → ui.sortable |
---|---|
Keywords: | added; draggable size removed |
Milestone: | 2.0.0 → none |
Owner: | set to mikesherov |
Status: | open → assigned |
Summary: | Draggable: using connectToSortable shows strange behaviour when some of the sortables are hidden → Sortable: incorrectly considers hidden elements as the clone element |
Note: See
TracTickets for help on using
tickets.
Bug demo