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] - Datepicker raises Invalid prop ref supplied to React.Fragment. React.Fragment can only have key and children props. #4068

Closed
rhufsky opened this issue Nov 15, 2024 · 14 comments · Fixed by #4428
Assignees
Labels
📦 Scope : Components Related to the components 🐛 Type: Bug Something isn't working

Comments

@rhufsky
Copy link

rhufsky commented Nov 15, 2024

NextUI Version

2.4.8 and 2.5-beta.11, Next15, React 19RC

Describe the bug

When hitting the calendar icon on datepicker, the datepicker popover opens and raises two errors:

Invalid prop refsupplied toReact.Fragment. React.Fragment can only have keyandchildren props.

Your Example Website or App

https://github.com/rhufsky/nextui-demo.git

Steps to Reproduce the Bug or Issue

Click on datepicker icon.

Expected behavior

Datepicker should open without errors.

Screenshots or Videos

No response

Operating System Version

MacOS

Browser

Chrome

@mikeyamato
Copy link

Also happening with React 18.3.1.

@slothgeek
Copy link

same bug to me. Im using individual instalation of calendar

@JadonLee8
Copy link

Also happened to me with 18.3.1 and individual installation

@Scoteezy
Copy link

Has anyone fixed this?

@irvanhanif
Copy link

from tailwindlabs/headlessui#3351 (comment) , say it only occurs in development mode. idk why, it happen in dev mode

Has anyone fixed this?

@yuriiIykyknow
Copy link

The same issue
"next": "^15.0.3",
"@nextui-org/date-picker": "^2.1.8",

@abbasEbadian
Copy link

abbasEbadian commented Nov 30, 2024

This error is because of framer motion animation.
Passing disableAnimation to DatePicker resolve's the error (for now).

@yuriiIykyknow
Copy link

When i set disableAnimation i got another error.
react error C:\src\client\components\globals\intercept-console-error.ts:46 Received an empty string for a boolean attribute inert. This will treat the attribute as if it were false. Either pass false to silence this warning, or pass true if you used an empty string in earlier versions of React to indicate this attribute is true.
pass inert={true} don't help (

@abbasEbadian
Copy link

Received an empty string for a boolean attribute inert

It's been fixed in this PR
and is in beta version.

@jimapl
Copy link

jimapl commented Dec 4, 2024

When I reinstall the beta, this issue still exists. Any idea?

@Cierra-Runis
Copy link

Issue still exists with:

{
  "@nextui-org/calendar": "2.2.3"
}

@XBEAST1
Copy link

XBEAST1 commented Dec 9, 2024

When I reinstall the beta, this issue still exists. Any idea?

Try Passing disableAnimation to DatePicker resolve's the error for me

@Archivec
Copy link

Archivec commented Jan 5, 2025

Same error when destroyInactiveTabPanel prop set to true on Tabs component

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.