Listbox: select-on-focus causes a crash #4881
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
In version 3.41.1, an issue seems to have been introduced in the Listbox component: If the
select-on-focus
option is set, a crash occurs, even for an empty list (<Listbox :options="[]" select-on-focus />
sufficies to get the error). In 3.41.0, this would work fine.This is the error thrown:
A bit of debugging showed that
onOptionSelectSingle
is called w/o any arguments, i.e. theevent
parameter is actually undefined.Reproducer
Full project
Sorry, right now there's no time for a separate reproducer. This is the full project the bug occurred in.
PrimeVue version
3.41.1
Vue version
3.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
Even this simple listbox will crash:
<Listbox :options="[]" select-on-focus />
Expected behavior
Not crashing...
The text was updated successfully, but these errors were encountered: