Update jquery.uls from upstream

Updating to:
8292fe90e3

Bug: T328956
Change-Id: I5e74b096f8b5c7c5b0263bfbc85aa0ee5f1b59f9
This commit is contained in:
Abijeet
2023-05-29 14:04:54 +05:30
parent c40be531b0
commit b4d4e20c15
3 changed files with 19 additions and 23 deletions

View File

@@ -112,8 +112,15 @@
if ( this.navigationIndex === null ) {
this.navigationIndex = 0;
} else {
this.navigationIndex++;
// Auto-correct the index. It has been noticed that the navigationIndex goes beyond the
// max index sometimes. See: phab:T328956#8854835
if ( this.navigationIndex > maxIndex ) {
this.navigationIndex = maxIndex;
} else {
this.navigationIndex++;
}
}
this.highlightLanguageOption();
},