Skip to content

Chosen select drop down get too long when all the options are removed #2445

@anupkattel

Description

@anupkattel

In IE (I've only tried IE 11), for a chosen select with lots of options, if the drop down is clicked once and then the items are cleared from the list, the updated empty drop-down becomes massively long.

http://jsfiddle.net/3op4gmmh/8/

This is only seen when one of the divs where select element is nested has width specified specified in non-percentage value:

.outerdiv {
    width: 25em;
}

or

.outerdiv {
    width: 250px;
}

However, if I change width of all the divs, where select is nested, to a percentage value, the issue is not seen.

.outerdiv {
    width: 90%;
}

The problem is my select is actually in a bootstrap's modal where I don't have control on the widths of the parent elements.

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