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

Commit 8becac3

Browse files
fafniricaluser378230
authored andcommitted
fix(uiSelectCtrl): Prevent error when using ngAnimate < v1.4
Fixes #1619 Closes #1626
1 parent 49fe607 commit 8becac3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uiSelectController.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ uis.controller('uiSelectCtrl',
125125

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

0 commit comments

Comments
 (0)