Skip to content

Commit

Permalink
Packing v1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
indrimuska committed Jul 25, 2016
1 parent f34576e commit 50ad38d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-selector",
"version": "1.4.0",
"version": "1.4.1",
"authors": [
"Indri Muska <indrimuska@gmail.com>"
],
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-selector.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! angular-selector - v1.4.0 - https://github.com/indrimuska/angular-selector - (c) 2015 Indri Muska - MIT */
/*! angular-selector - v1.4.1 - https://github.com/indrimuska/angular-selector - (c) 2015 Indri Muska - MIT */
@-webkit-keyframes selector-rotate { 0% { -webkit-transform: rotateZ(-359deg); } 100% { -webkit-transform: rotateZ(0deg); } }
@-moz-keyframes selector-rotate { 0% { -moz-transform: rotateZ(-359deg); } 100% { -moz-transform: rotateZ(0deg); } }
@-o-keyframes selector-rotate { 0% { -o-transform: rotateZ(-359deg); } 100% { -o-transform: rotateZ(0deg); } }
Expand Down
9 changes: 4 additions & 5 deletions dist/angular-selector.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! angular-selector - v1.4.0 - https://github.com/indrimuska/angular-selector - (c) 2015 Indri Muska - MIT */
/*! angular-selector - v1.4.1 - https://github.com/indrimuska/angular-selector - (c) 2015 Indri Muska - MIT */
(function (angular) {

// Key codes
Expand Down Expand Up @@ -274,6 +274,7 @@
scope.open = function () {
scope.isOpen = true;
scope.dropdownPosition();
$timeout(scope.scrollToHighlighted);
};
scope.close = function () {
scope.isOpen = false;
Expand Down Expand Up @@ -425,10 +426,8 @@
var selectedValues = angular.isArray(scope.selectedValues) ? scope.selectedValues : [scope.selectedValues];
return !scope.inOptions(selectedValues, option);
});
if (scope.highlighted >= scope.filteredOptions.length)
scope.highlight(scope.filteredOptions.length - 1);
if (scope.highlighted == -1 && scope.filteredOptions.length > 0)
scope.highlight(0);
else
scope.highlight(scope.filteredOptions.indexOf(scope.selectedValues[0]));
};

// Input width utilities
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-selector.min.css

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

Loading

0 comments on commit 50ad38d

Please sign in to comment.