primereact
primereact copied to clipboard
MultiSelect: Uncaught ReferenceError: filter is not defined
Describe the bug
When we open the MultiSelect and press Tab key there is an error in console Uncaught ReferenceError: filter is not defined.
It comes from the https://github.com/primefaces/primereact/blob/prod/components/lib/multiselect/MultiSelect.js line 280 hide(filter)
Filter variable is undefined and also hide function doesn't take any parameters (line 534)
It casues the issue that MultiSelect dropdown is not closed after tabbing to the next form element from it.
After removing locally filter parameter from the line 280, everything works fine.
Reproducer
No response
System Information
System:
OS: Windows 11 10.0.26100
CPU: (6) x64 Intel(R) Core(TM) i5-9400 CPU @ 2.90GHz
Memory: 10.79 GB / 31.87 GB
Binaries:
Node: 20.10.0 - C:\Program Files\NodeJS 20.10.0\node.EXE
npm: 10.2.3 - C:\Program Files\NodeJS 20.10.0\npm.CMD
Browsers:
Chrome: 141.0.7390.123
Edge: Chromium (141.0.3537.71)
Firefox: 143.0.1 - C:\Program Files\Mozilla Firefox\firefox.exe
Internet Explorer: 11.0.26100.1882
npmPackages:
primereact: ^10.9.6 => 10.9.6
react: 19.1.0 => 19.1.0
Steps to reproduce the behavior
- Open MultiSelect dropdown
- Mark some option for example with with arrows and space
- Press Tab
Expected behavior
No errors, MultiSelect dropdown is closed after pressing Tab