Skip to content

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

@mikejav

Description

@mikejav

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Needs TriageIssue will be reviewed by Core Team and a relevant label will be added as soon as possible

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions