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

[BUG] - Dropdown Error #4267

Closed
cuunoong opened this issue Dec 7, 2024 · 3 comments
Closed

[BUG] - Dropdown Error #4267

cuunoong opened this issue Dec 7, 2024 · 3 comments

Comments

@cuunoong
Copy link

cuunoong commented Dec 7, 2024

NextUI Version

2.6.4

Describe the bug

I got this error after upgrading to latest version, and it work in previous version

chunk-GZD7INZN.js?v=6411179e:521 Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?

Check the render method of NextUI.DropdownTrigger.
at PopoverTrigger (http://localhost:5173/node_modules/.vite/deps/@nextui-org_react.js?v=cb94c851:53307:43)
at DropdownTrigger (http://localhost:5173/node_modules/.vite/deps/@nextui-org_react.js?v=cb94c851:57690:35)
at http://localhost:5173/node_modules/.vite/deps/@nextui-org_react.js?v=cb94c851:53335:11
at Dropdown (

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

  1. Create component with dropdown

<Dropdown> <DropdownTrigger> <div> <Button variant="bordered">Open Menu</Button> </div> </DropdownTrigger> <DropdownMenu aria-label="Static Actions"> <DropdownItem key="new">New file</DropdownItem> <DropdownItem key="copy">Copy link</DropdownItem> <DropdownItem key="edit">Edit file</DropdownItem> <DropdownItem key="delete" className="text-danger" color="danger" > Delete file </DropdownItem> </DropdownMenu> </Dropdown>

Expected behavior

Fix

Screenshots or Videos

chunk-GZD7INZN.js?v=6411179e:521 Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?

Check the render method of NextUI.DropdownTrigger.
at PopoverTrigger (http://localhost:5173/node_modules/.vite/deps/@nextui-org_react.js?v=cb94c851:53307:43)
at DropdownTrigger (http://localhost:5173/node_modules/.vite/deps/@nextui-org_react.js?v=cb94c851:57690:35)
at http://localhost:5173/node_modules/.vite/deps/@nextui-org_react.js?v=cb94c851:53335:11
at Dropdown (

Operating System Version

Mac OS

Browser

Chrome

Copy link

linear bot commented Dec 7, 2024

@AnYiEE
Copy link
Contributor

AnYiEE commented Dec 7, 2024

#4245

@wingkwong
Copy link
Member

Duplicate - lets' track in above one.

@wingkwong wingkwong closed this as not planned Won't fix, can't repro, duplicate, stale Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants