Skip to content

Commit

Permalink
Bump-up to 1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
indrimuska committed Oct 11, 2017
1 parent 6cc94ad commit 7e10263
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 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.6.0",
"version": "1.6.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.6.0 - https://github.com/indrimuska/angular-selector - (c) 2015 Indri Muska - MIT */
/*! angular-selector - v1.6.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
12 changes: 6 additions & 6 deletions dist/angular-selector.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! angular-selector - v1.6.0 - https://github.com/indrimuska/angular-selector - (c) 2015 Indri Muska - MIT */
/*! angular-selector - v1.6.1 - https://github.com/indrimuska/angular-selector - (c) 2015 Indri Muska - MIT */
(function (angular) {

// Key codes
Expand Down Expand Up @@ -308,7 +308,7 @@
marginTop = parseFloat(styles.marginTop || 0),
marginBottom = parseFloat(styles.marginBottom || 0);

if (!scope.filteredOptions.length) return;
if (!scope.filteredOptions.length || !option) return;

if (option.offsetTop + option.offsetHeight + marginBottom > dd.scrollTop + dd.offsetHeight)
scope.$evalAsync(function () {
Expand Down Expand Up @@ -439,10 +439,10 @@
}
// show create item option
if (scope.create) {
scope.showCreateOption = scope.create && scope.search && scope.filteredOptions.filter(function (option) {
return scope.getObjValue(option, scope.labelAttr).toLowerCase() == scope.search.toLowerCase();

}).length == 0;
scope.showCreateOption = scope.create && scope.search &&
filter(scope.filteredOptions, scope.search, function (actual, expected) {
return angular.isString(actual) && (actual || '').toLowerCase() == expected.toLowerCase();
}).length == 0;
if (scope.showCreateOption && scope.filteredOptions.length == 0 && scope.highlighted != -1) scope.highlighted = -1;
}
};
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 7e10263

Please sign in to comment.