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

Virtual Scroll Jumping Backwards #637

Closed
dsgnow opened this issue Dec 7, 2023 Discussed in #353 · 1 comment
Closed

Virtual Scroll Jumping Backwards #637

dsgnow opened this issue Dec 7, 2023 Discussed in #353 · 1 comment

Comments

@dsgnow
Copy link

dsgnow commented Dec 7, 2023

Discussed in https://github.com/orgs/primefaces/discussions/353

Originally posted by msixfour October 31, 2023
if we have a textarea next to a dropdown and pass [autoresize]=true to it, the virtual scroll doesn't work correctly.
Code to reproduce:

<div class="card flex justify-content-center">
  <textarea pInputTextarea rows="1" [autoResize]="true"></textarea>
  <p-dropdown
    [options]="items"
    [(ngModel)]="selectedItem"
    placeholder="Select Item"
    [virtualScroll]="true"
    [virtualScrollItemSize]="38"
  ></p-dropdown>
</div>
constructor() {
    this.items = [];
    for (let i = 0; i < 50; i++) {
      this.items.push({ label: 'Item ' + i, value: 'Item ' + i });
    }
  }

@cetincakiroglu
codesandbox example: https://codesandbox.io/s/primeng-dropdown-virtualscroll-demo-forked-8tn6m7?file=/src/app/demo/dropdown-virtualscroll-demo.html

@cetincakiroglu
Copy link

cetincakiroglu commented Dec 8, 2023

Hi,

The issue is opened in the wrong repo, could you please open it on PrimeNG and tag me? I can't add it into the PrimeNG milestone from here nor I can fix it.

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

2 participants