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

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

Open
slavap opened this issue Dec 6, 2017 · 0 comments
Open

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

slavap opened this issue Dec 6, 2017 · 0 comments

Comments

@slavap
Copy link

slavap commented Dec 6, 2017

$.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 ) { ... }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
1 participant