0

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 demo: https://plnkr.co/edit/eGVkSPJRpddeGxcIogdd?p=preview 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.

3
  • whats do you mean by automatically top of dropdown is dispalyed? I can see 1 item selected , on selecting any option Commented Jun 27, 2016 at 6:05
  • @Deep: Pls see the plunk. if u select any option immediately control goes to first option of dropdown.. which makes it difficult for user to check and uncheck at a time. First user selects an option and top option of dropdown will be displayed.. again user has to scroll down and uncheck. Commented Jun 27, 2016 at 6:11
  • Its a focus issue comment out @252 Commented Jun 27, 2016 at 6:17

1 Answer 1

1

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];
    //searchBox.focus();
  }

It cause the move focus up.

Sign up to request clarification or add additional context in comments.

1 Comment

Comment out @252 line from multiselect.js i.e searchBox.focus().

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.