Skip to content

Commit

Permalink
Bump up to v2.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
indrimuska committed May 7, 2017
1 parent 2727bd1 commit 78b22fe
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jquery-editable-select",
"version": "2.2.4",
"version": "2.2.5",
"authors": [
"Indri Muska <[email protected]>"
],
Expand All @@ -25,6 +25,6 @@
"bower_components"
],
"dependencies": {
"jquery": ">=1.1.1 <3.0.0"
"jquery": ">=1.1.1"
}
}
10 changes: 4 additions & 6 deletions dist/jquery-editable-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,16 +158,14 @@
switch (e.keyCode) {
case 38: // Up
var visibles = that.es.$list.find('li.es-visible:not([disabled])');
var nextNode = visibles.filter('li.selected').prev();
var nextIndex = visibles.index(nextNode.length > 0 ? nextNode : visibles.last());
that.highlight(nextIndex);
var selectedIndex = visibles.index(visibles.filter('li.selected'));
that.highlight(selectedIndex - 1);
e.preventDefault();
break;
case 40: // Down
var visibles = that.es.$list.find('li.es-visible:not([disabled])');
var nextNode = visibles.filter('li.selected').next();
var nextIndex = visibles.index(nextNode.length > 0 ? nextNode : visibles.first());
that.highlight(nextIndex);
var selectedIndex = visibles.index(visibles.filter('li.selected'));
that.highlight(selectedIndex + 1);
e.preventDefault();
break;
case 13: // Enter
Expand Down
2 changes: 1 addition & 1 deletion dist/jquery-editable-select.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/jquery-editable-select.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jquery-editable-select",
"version": "2.2.4",
"version": "2.2.5",
"description": "A simple jQuery Plugin that converts a select into an text field with suggestions.",
"main": "dist/jquery-editable-select.min.js",
"repository": {
Expand Down

0 comments on commit 78b22fe

Please sign in to comment.