Skip to content

Commit

Permalink
pick first item when only one exists in selection
Browse files Browse the repository at this point in the history
  • Loading branch information
bseth99 committed Oct 25, 2013
1 parent 9ebc076 commit 764354b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jqueryui-multisearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,7 @@

this._showPicker();

if ( this.options.preventNotFound ) {
if ( this.options.preventNotFound || this.optionData.length == 1 ) {
this.optionIndex = 0;
this._overPickerItem( this._getPickerChildren().eq( 0 ) );
}
Expand Down

0 comments on commit 764354b

Please sign in to comment.