You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because options is an optional prop, if the options are undefined and you try to use the editable prop, an "Uncaught TypeError: Cannot read properties of undefined (reading 'findIndex')" error is thrown when typing in the Dropdown.
Ensure that options is either not included as a prop, or pass undefined as options.
Ensure that editable is set to true.
Type in the Dropdown and observe the "Uncaught TypeError: Cannot read properties of undefined (reading 'findIndex')" error in the console, as well as the input being cleared when trying to save the input.
Expected behavior
No error should be thrown, and the input should be saved when you leave the Dropdown.
The text was updated successfully, but these errors were encountered:
melloware
added
Type: Bug
Issue contains a defect related to a specific component.
and removed
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
labels
Jun 26, 2024
Describe the bug
Because options is an optional prop, if the options are undefined and you try to use the editable prop, an "Uncaught TypeError: Cannot read properties of undefined (reading 'findIndex')" error is thrown when typing in the Dropdown.
Reproducer
https://codesandbox.io/s/primereact-forked-rjx5p7?file=/src/App.jsx
PrimeReact version
10.6.6
React version
18.x
Language
ALL
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
No error should be thrown, and the input should be saved when you leave the Dropdown.
The text was updated successfully, but these errors were encountered: