primefaces / primefaces/primereact

ListBox: passing the virtualScrollerOptions prop in to component prevent it from rendering

Open
#8,251 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Status: Needs Triage
Dominant language
CSS
Stars
8.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

According to documentation at https://primereact.org/listbox/, it is possible to pass the virtualScrollerOptions property into the component.
However when I tried to do it, the component is not rendering any options

It also doesn't work on the documentation page:

Image
Reproducer

https://stackblitz.com/edit/n8ih7hqg?file=src%2FApp.jsx

System Information
System:
    OS: Windows 11 10.0.26100
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
    Memory: 3.08 GB / 23.70 GB
  Binaries:
    Node: 20.11.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.2.4 - C:\Program Files\nodejs\npm.CMD
    bun: 1.2.18 - ~\.bun\bin\bun.EXE
  Browsers:
    Edge: Chromium (139.0.3405.111)
    Internet Explorer: 11.0.26100.1882
  npmPackages:
    primereact: ^10.9.7 => 10.9.7
    react: 19.1.0 => 19.1.0
Steps to reproduce the behavior

As described above

Expected behavior

Works as documented

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the ListBox documentation and the linked StackBlitz reproducer, focusing on the virtualScrollerOptions prop and the empty rendered options. Compare the documented configuration with the reproducer, then verify that the ListBox renders its options when the prop is supplied.

Written by the indexing model from the issue text.

Assessment

Tech stack
react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.