Search with null
/undefined
values breaks rendering
#5140
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
When typing directly on the multi-select component, an error us thrown if any of the labels are
null
/undefined
. There may be reasons for this (data-side), and, in our case, we're using slots to render something better for the user.However, the error is thrown and causes the component to rerender or break fully.
Screen.Recording.2024-01-24.at.07.35.21.mov
Error:
The error happens here:
Reproducer
https://codesandbox.io/p/devbox/multi-select-filter-null-bug-s67hsy?file=%2Fsrc%2FApp.vue%3A10%2C28
PrimeVue version
3.45.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Nuxt
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
Error is handled gracefully with the nullability of labels and doesn't break the rendering.
The text was updated successfully, but these errors were encountered: