Optimize performance with virtual scroll
mainFor selects containing a large number of options, enable virtualScroll to improve performance. This ensures only items within the viewport are rendered.
- Set
virtualScroll: trueto enable it for all selects. - Set
virtualScrollto an integer to only enable virtualization if the select has at least that many options (e.g.,virtualScroll: 600).