Skip to content
This repository
Browse code

[custom select] Add ui-btn-down-<theme> to initially focused menu ite…

…m to make tab selection consistent
  • Loading branch information...
commit 73631d38d799a36854a31d03a9bc599e3cf871bd 1 parent 2cfc8f6
Gabriel "_|Nix|_" Schulhof authored June 25, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  js/widgets/forms/select.custom.js
2  js/widgets/forms/select.custom.js
@@ -355,7 +355,7 @@ define( [
355 355
 					if ( selector.length === 0 ) {
356 356
 						selector = self.list.find( "li.ui-btn:not(:jqmData(placeholder='true')) a" );
357 357
 					}
358  
-					selector.first().focus();
  358
+					selector.first().focus().closest( "li" ).addClass( "ui-btn-down-" + widget.options.theme );
359 359
 				}
360 360
 
361 361
 				if ( menuHeight > screenHeight - 80 || !$.support.scrollTop ) {

0 notes on commit 73631d3

Please sign in to comment.
Something went wrong with that request. Please try again.