forked from valor-software/ng2-select
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Select dropdown closed on scroll start #201
Comments
@hc42 Thanks for the report! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
preconditions:
Then the menu is closed when you try to click with the mouse cursor on the browser scroll wheel (at the ul element).
The cause is the @HostListener('document:focusin', ['$event'])
in https://github.com/optimistex/ngx-select-ex/blob/master/src/app/lib/ngx-select/ngx-select.component.ts#L294
which closes the dropdown
A workaround is to add a focusin listener to the select options container (appendTo element) and prevent event propagation.
The text was updated successfully, but these errors were encountered: