Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

Commit

Permalink
fix(uiSelectCtrl): Prevent error when using ngAnimate < v1.4
Browse files Browse the repository at this point in the history
Fixes #1619 
Closes #1626
  • Loading branch information
fafnirical authored and user378230 committed May 31, 2016
1 parent 49fe607 commit 8becac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uiSelectController.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ uis.controller('uiSelectCtrl',

var container = $element.querySelectorAll('.ui-select-choices-content');
var searchInput = $element.querySelectorAll('.ui-select-search');
if (ctrl.$animate && ctrl.$animate.enabled(container[0])) {
if (ctrl.$animate && ctrl.$animate.on && ctrl.$animate.enabled(container[0])) {
var animateHandler = function(elem, phase) {
if (phase === 'start' && ctrl.items.length === 0) {
// Only focus input after the animation has finished
Expand Down

0 comments on commit 8becac3

Please sign in to comment.