Deborah Deborah - 3 months ago 6x
AngularJS Question

Functioning issue of angularjs dropdowns

I am using multiselect dropdowns in angular. The issue am facing is whenever any option is selected in dropdown, automatically the top of dropdown content is being displayed.
For ex; Here i have a

: when I check/uncheck Honda option from dropdown,automatically top of dropdown is dispalyed.

How can I make it to stay at the option which i select from dropdown. So that checking/unchecking will be easy for user.

dgk dgk

You need to edit the multiselect.js directive here is required changes from line @252

  scope.focus = function focus() {
    var searchBox = element.find('input')[0];

It cause the move focus up.