Skip to content

Collapse show/hide/toggle methods don't work while a previous animation is still running #16741

@MiladSadinam

Description

@MiladSadinam

Using

$('.collapse').collapse('show');
$('.collapse').collapse('hide');

ends up in state 'show'. The second collapse() is being ignored because the first animation is still running.

https://jsfiddle.net/fjb5r9s5/2/ demonstrates that clicking quickly the button results in wrong states.

I could reproduce this in the current versions of Chrome, Firefox and IE.

EDIT: Fixed HTML5 Validator error

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions