Skip to content

Animated toggle() turns display:inline into display:inline-block #2071

@cburschka

Description

@cburschka

There's an example here: http://jsfiddle.net/cburschka/ve5fbujq/

The non-animated toggle() appears to work normally. An animation like toggle('slow') will put a display:inline-block property on the <span> element, which in the above example causes the red text to drop to a new line instead of wrapping normally.

This happens whether or not the span was explicitly set to display:inline earlier, or was just inheriting the default value.

This bug seems similar to #1774 (apparently closed prior to the release of 2.1.3), but isn't quite the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions