Search and Top Navigation
#7976 closed bug (worksforme)
Opened January 01, 2012 11:13AM UTC
Closed January 03, 2012 02:19PM UTC
Sortable Items Selector (Parent > Child) not working
Reported by: | SouthernLlama | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | ui.sortable | Version: | 1.8.17 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
'Sortable' component doesn't allow sorting of items when the 'items' option is specified with a parent-child selector (or ancestor-descendant selector).
For example, none of these will work:
"ul > li" ".a > .b" ".a .b"
I find this odd given that this selector does works:
> li
Attachments (0)
Change History (1)
Changed January 03, 2012 02:19PM UTC by comment:1
resolution: | → worksforme |
---|---|
status: | new → closed |
This works fine for me. You're probably trying to use the sortable element or an ancestor in your selector. The selector must match elements from within the element. This of it is $( sortableElement ).find( items ).