Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

selectmenu refresh() is incorrect in case of filtering #8604

Open
@slavap

Description

@slavap

$.inArray( i, indices ) must be replaced with item's "option-index"

                self.list.find( "li:not(.ui-li-divider)" )
                    .find( "a" ).removeClass( $.mobile.activeBtnClass ).end()
                    .attr( "aria-selected", false )
                    .each(function( i ) {
                        var item = $( this );
                        var itemIdx = $.mobile.getAttribute( item, "option-index" ); // fixed, i could not be used because of filtering
                        if ( $.inArray( itemIdx, indices ) > -1 ) { ... }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions