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

Scroll to selected items - bugfix when using with animate #1742

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/uiSelectController.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ uis.controller('uiSelectCtrl',

if (ctrl.items.length > 0) {
ctrl.$animate.on('enter', container[0], animateHandler);
$timeout(function () {
Copy link
Contributor

@user378230 user378230 Aug 11, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't (or couldn't) this be done in animateHandler?

if(!ctrl.tagging.isActivated && ctrl.items.length > 1) {
_ensureHighlightVisible();
}
});
} else {
ctrl.$animate.on('removeClass', searchInput[0], animateHandler);
}
Expand Down