nextui icon indicating copy to clipboard operation
nextui copied to clipboard

[BUG] - Datepicker raises Invalid prop `ref` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.

Open rhufsky opened this issue 2 years ago • 14 comments

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

rhufsky avatar Nov 15 '24 15:11 rhufsky

Also happening with React 18.3.1.

mikeyamato avatar Nov 16 '24 03:11 mikeyamato

same bug to me. Im using individual instalation of calendar

slothgeek avatar Nov 16 '24 19:11 slothgeek

Also happened to me with 18.3.1 and individual installation

JadonLee8 avatar Nov 16 '24 19:11 JadonLee8

Has anyone fixed this?

Scoteezy avatar Nov 21 '24 09:11 Scoteezy

from https://github.com/tailwindlabs/headlessui/issues/3351#issuecomment-2246655751 , say it only occurs in development mode. idk why, it happen in dev mode

Has anyone fixed this?

irvanhanif avatar Nov 21 '24 16:11 irvanhanif

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

yuriiIykyknow avatar Nov 21 '24 20:11 yuriiIykyknow

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

abbasEbadian avatar Nov 30 '24 07:11 abbasEbadian

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 (

yuriiIykyknow avatar Dec 02 '24 16:12 yuriiIykyknow

Received an empty string for a boolean attribute inert

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

abbasEbadian avatar Dec 02 '24 18:12 abbasEbadian

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

jimapl avatar Dec 04 '24 07:12 jimapl

Issue still exists with:

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

Cierra-Runis avatar Dec 08 '24 12:12 Cierra-Runis

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

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

XBEAST1 avatar Dec 09 '24 17:12 XBEAST1

Same error when destroyInactiveTabPanel prop set to true on Tabs component

Archivec avatar Jan 05 '25 02:01 Archivec