Skip to content
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

_a2.find is not a function #3761

Closed
wingkwong opened this issue Sep 15, 2024 Discussed in #3760 · 2 comments · Fixed by #3762
Closed

_a2.find is not a function #3761

wingkwong opened this issue Sep 15, 2024 Discussed in #3760 · 2 comments · Fixed by #3762
Assignees
Labels
📦 Scope : Components Related to the components 🐛 Type: Bug Something isn't working

Comments

@wingkwong
Copy link
Member

Discussed in #3760

Originally posted by PyrkinValentin September 15, 2024
Hello. I use nextui and I really like it. Today I updated all nextui components to the new version and now there is a problem.

The specific problem is in the Dropdown component.
Dropdown version: ^2.1.29 -> ^2.1.30

Line 101: const item = (_a2 = props2 == null ? void 0 : props2.children) == null ? void 0 : _a2.find((item2) => item2.key === key);
Could you help solve this problem (_a2.find is not a function)?

Best regards!

@wingkwong wingkwong added 🐛 Type: Bug Something isn't working 📦 Scope : Components Related to the components labels Sep 15, 2024
@wingkwong wingkwong self-assigned this Sep 15, 2024
Copy link

linear bot commented Sep 15, 2024

@wingkwong
Copy link
Member Author

findings:

  • failed on dynamic items only since static items have children to iterate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 Scope : Components Related to the components 🐛 Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant