Skip to content

Initializing new select clears radio selection from ones before it #362

@cnanney

Description

@cnanney

Example:

<select id="e1">
    <option value="cheese">Cheese</option>
    <option value="tomatoes" selected>Tomatoes</option>
    <option value="mozarella">Mozzarella</option>
</select>
<select id="e2">
    <option value="mushrooms">Mushrooms</option>
    <option value="pepperoni">Pepperoni</option>
    <option value="onions" selected>Onions</option>
</select>
$('#e1').multiselect();
$('#e2').multiselect();

This properly selects Tomatoes for e1 and Onions for e2. However, expanding the dropdown for e1 shows the radio has been deselected, despite the background color staying active:

image

JSFiddle: http://jsfiddle.net/cnanney/bv31fymm/

You can continue the chain as long as you want... If I had repeated those 10 times, only dropdown 10 would have its radio selected, and the previous 9 would not.

Version 0.9.8.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions