From 28bfa3e9bc3d30421241517726de54967944b283 Mon Sep 17 00:00:00 2001 From: Abijeet Date: Thu, 16 Feb 2023 22:10:10 +0530 Subject: [PATCH] Update jquery.uls from upstream https://github.com/wikimedia/jquery.uls/commit/02cd462 Bug: T328956 Change-Id: I66fd45ecfb8edf0ad8a710c556cd48c09e5d3ec4 --- lib/jquery.uls/src/jquery.uls.lcd.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/jquery.uls/src/jquery.uls.lcd.js b/lib/jquery.uls/src/jquery.uls.lcd.js index c61dd304..8725c549 100644 --- a/lib/jquery.uls/src/jquery.uls.lcd.js +++ b/lib/jquery.uls/src/jquery.uls.lcd.js @@ -134,6 +134,10 @@ return; } + if ( this.navigationIndex === null ) { + return; + } + this.navigationIndex--; this.highlightLanguageOption(); },