You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Click in the input field to display the dropdown (focus)
Try to drag the scrolling bar
The dropdown closes instead of allowing us to scroll
What is expected?
It is possible to scroll.
What is actually happening?
The dropdown closes.
Environment
Info
ng-zorro-antd
8.4.0
Browser
IE11
It does not happen to the other dropdowns, e.g. Select inputs.
I guess must be changed the closing event to the single option, rather than the whole dropdown.
The text was updated successfully, but these errors were encountered:
I've been forced to create a directive with the same selector which on keydown/focus add a listener to prevent the blur of the element and on blur to remove it.
However has not been possible to solve it using the ElementRef, nor using the querySelector.
Instead I'd to brutally hack it with
window.addEventListener('blur', preventAll, true)
where preventAll is a function which ... prevents all :)
I will consider to create a PR.
hsuanxyz
added a commit
to hsuanxyz/ng-zorro-antd
that referenced
this issue
Dec 11, 2019
Reproduction link
https://stackblitz.com/edit/angular-hzqs6m?file=src/app/app.component.ts
Steps to reproduce
What is expected?
It is possible to scroll.
What is actually happening?
The dropdown closes.
It does not happen to the other dropdowns, e.g. Select inputs.
I guess must be changed the closing event to the single option, rather than the whole dropdown.
The text was updated successfully, but these errors were encountered: