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
Description
$.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
Labels
No labels