Open Kimhansoool opened 1 week ago
I am also getting a lot of these errors on Accordion / DropdownMenu
Invalid prop
data-statesupplied to
React.Fragment. React.Fragment can only have
keyand
childrenprops.
Invalid prop
data-orientationsupplied to
React.Fragment. React.Fragment can only have
keyand
childrenprops.
Dependencies
"@radix-ui/react-accordion": "^1.2.1",
"@radix-ui/react-checkbox": "1.1.2",
"@radix-ui/react-dialog": "^1.1.2",
"@radix-ui/react-dropdown-menu": "2.1.2",
"@radix-ui/react-form": "^0.1.0",
"@radix-ui/react-popover": "1.1.2",
"@radix-ui/react-radio-group": "^1.2.1",
"@radix-ui/react-scroll-area": "1.2.0",
"@radix-ui/react-select": "2.1.2",
"@radix-ui/react-slot": "1.1.0",
"@radix-ui/react-tabs": "^1.1.1",
"@radix-ui/react-tooltip": "1.1.3",
Bug report
Current Behavior
When migration to Next15 and React19, an error appears saying that 'aria-hidden' cannot be used in.
After searching the radix-ui menu components package code, I found that 'aria-hidden' was added whild return hideothers in MenuRootContentModal.
https://github.com/radix-ui/primitives/blob/74b182b401c8ca0fa5b66a5a9a47f507bb3d5adc/packages/react/menu/src/Menu.tsx#L258
https://github.com/theKashey/aria-hidden/blob/52c7374abb9fb0a348c63b9ff613a575868cec62/src/index.ts#L174
Reproducible example
Using dropdown menu package in next15...
Your environment