New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] - Error when using scalar values as items
for Select
#2938
Comments
Thanks for the issue! As we use WeakMap internally, we cannot pass primitive values to items prop. We will modify the type to clarify this.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NextUI Version
2.3.6
Describe the bug
When passing an array of scalar values (e.g. number or string) to
items
of Select, there is the following error raised:If you pass an array of objects, the error disappears.
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Expected behavior
The
items
param should accept scalar values or restrict the type of the parameter.Screenshots or Videos
No response
Operating System Version
macOS
Browser
Chrome
The text was updated successfully, but these errors were encountered: