-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Dropdown virtualScroll filter bug #12461
Comments
for the "Virtual Scroll (10000 Items)" dropdown showcase, set the initial value to 1000, |
Hi @cetincakiroglu p-scroller > div > ul has style: "translate3d(0px, 32675px, 0px)", it should be 0, thanks for your support |
Hi, A refactored and working version of your example: https://stackblitz.com/edit/primeng-dropdown-demo-mezh18?file=src%2Fapp%2Fapp.component.html |
Hi @cetincakiroglu , thanks for the quick response. I modified your fork to replicate https://stackblitz.com/edit/primeng-dropdown-demo-pdztth?file=src%2Fapp%2Fapp.component.html |
Hello, I'm encountering the same bug in:
I know it's fixed in the 15.2.x version of the Primeng, but I cannot update the packages at the moment. Is there "hack" to correct the behaviour of the dropdown, or updating to the latest version of the Primeng is the only solution? |
Hello, I'm still having the same issue :
|
I'm blocked in 14 too and the following seems to work : <p-dropdown
#myDD
[virtualScroll]="true"
[virtualScrollItemSize]="30"
(onFilter)="onDDFilter(myDD)"
...
></p-dropdown> in the same component : onDDFilter(dd:DropDown) {
if (dd.scroller) {
dd.scroller.contentEl.style.transform = 'translate3d(0px, 0px, 0px)';
}
} |
Describe the bug
p-scroller doesn't update the initial scroll after filter changes,
scroll height fixes itself after p-scroller.onScrollChange is called
14.1.1 works correctly, bug is introduced in 14.2.0, still active in 15.0.1
https://stackblitz.com/edit/primeng-dropdown-demo-jvprrv
Environment
primeng: 15.0.1
angular 15.0.4
Reproducer
https://stackblitz.com/edit/primeng-dropdown-demo-jvprrv?file=package.json
Angular version
15.0.4
PrimeNG version
15.0.1
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.12.1
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
No response
The text was updated successfully, but these errors were encountered: