BosNaufal / vue2-autocomplete

Vue 2 Component to make Autocomplete element.
MIT License
233 stars 89 forks source link

Scrolling Problem #67

Closed molerat619 closed 6 years ago

molerat619 commented 6 years ago

If our autocomplete results are too many, the list is as long as it needs to be without having a maximum size. We want to limit the size to have the user scroll within the results-window, because the parent element is not big enough.

What's the best way to achieve that?

constantm commented 6 years ago

@molerat619 Can't this be done by simply setting max-height and overflow-y: auto; on the search results?

molerat619 commented 6 years ago

Yes, we fixed it now. But we couldn't imagine we were the only ones who need this and thought there was an implemented solution already so we don't have to add our own css for this.

peacefulseeker commented 6 years ago

Yes, and then comes another problem when navigating with arrows(down + up). It does not scroll to selected element by default. Will make a pull request later to fix that.