Permalink
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 259f90d commit 174c43b2838f597c74e3e2d13d507add9f340401 @gabrielschulhof gabrielschulhof committed Jun 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/jquery.mobile.forms.select.custom.js
@@ -363,7 +363,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 174c43b

Please sign in to comment.