Update jquery.uls from upstream

Update jquery.uls to:
95e65bf1b0

Bug: T333822
Change-Id: I85e3eccdb52b5178d2b1a8913fc069deb1d2345d
This commit is contained in:
Abijeet
2023-04-25 18:15:58 +05:30
parent 89c173ddac
commit a2fc15af66
7 changed files with 29 additions and 4 deletions

View File

@@ -155,6 +155,13 @@
$listItems.removeClass( 'uls-language-option--highlighted' );
var $selectedItem = $listItems.eq( this.navigationIndex );
if ( $selectedItem.length === 0 ) {
throw new Error(
'Could not identify selected item with index: ' + this.navigationIndex + '; ' +
'Total items in ULS: ' + $listItems.length
);
}
$selectedItem.addClass( 'uls-language-option--highlighted' );
// If the selected item is not visible, then scroll the container to display it