Skip to content

Fail to update options when they are not strings #99

@MatteoPiovanelli

Description

@MatteoPiovanelli

$dropdown.prev('select').val($option.data('value')).trigger('change');

When the library should update the option for the original selected, it fails to do so if the value is interpreted by js as something other than a string.

For example with the following select.

<select id="id" name="name" class="nice-select" /">
                        <option value="true">Yes</option>
                        <option value="false">No</option>
                    </select>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions