Skip to content

Closing a bootstrap "collapse" element in the sortable "start" event doesn't resize the list item #125

Closed
@jasonpolites

Description

@jasonpolites

(posting here until the Trac interface is back up (as per #122))

I suspect this is a timing/ordering issue, but not sure if it's jquery-ui that's at fault or not.

If a list-item in a sortable list contains a collapse element that should close (hide) when the list item is moved, we can use the start() event in the sortable. However, although the collapse element does collapse, the list-item doesn't resize accordingly.

Demo of this here:

http://www.bootply.com/kIM75OP9Ok

If you click "Expand" on one of the items, then drag it you will see it collapse but retain its expanded height.

The desired outcome is that the collapse completes fully before movement (or soon after start)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions