Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closes the scrollable list of items if you click on scroll button #118

Open
vishalbedre opened this issue Dec 3, 2015 · 2 comments
Open

Comments

@vishalbedre
Copy link

Hi Team,

I used autocomplete on my MVC+ Anular application. I also added css as follows inorder to create scrollable list but it is closing scrollable list if I click on the list. In other words It is hiding autocomplete list once I click on scrollable button.
CSS code
.autocomplete ul {
max-height: 400px;
min-height: inherit;
overflow-y: scroll;
cursor: hand;
}

HTML code

@dedonin
Copy link

dedonin commented Jan 11, 2016

Hi,
I'm experiencing the same issue and I have already found information saying that IE11 registers the click on the scroll bar as a click outside the DOM. But I cannot seem to find a suitable solution for this particular autocomplete. Most of the websites provide a code solution for jQuery autocomplete, but I couldn't find one that clearly explains a solution for this Angular one. Looking forward to responses! :)

@kamotext
Copy link

kamotext commented Jun 1, 2017

Hi,

Here's my not quite good solution but still works

  • Just replace event from 'blur' to 'click' on autocomplete.js.

  • Create a mouse event 'i.e: ng-mousedown' in the container where auto complete is, then trap target.className = 'ng-scope'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants