Browse files

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

…m to make tab selection consistent
  • Loading branch information...
1 parent 2cfc8f6 commit 73631d38d799a36854a31d03a9bc599e3cf871bd @gabrielschulhof gabrielschulhof committed Jun 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/widgets/forms/select.custom.js
View
2 js/widgets/forms/select.custom.js
@@ -355,7 +355,7 @@ define( [
if ( selector.length === 0 ) {
selector = self.list.find( "li.ui-btn:not(:jqmData(placeholder='true')) a" );
}
- selector.first().focus();
+ selector.first().focus().closest( "li" ).addClass( "ui-btn-down-" + widget.options.theme );
}
if ( menuHeight > screenHeight - 80 || !$.support.scrollTop ) {

0 comments on commit 73631d3

Please sign in to comment.