designsystemet
designsystemet copied to clipboard
Using asChild-prop on DropdownItem generates errors
Description of the bug
Using asChild on DropdownItem causes an error:
Warning: React does not recognize the asChild
prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase aschild
instead. If you accidentally passed it from a parent component, remove it from the DOM element.
Full stacktrace: dropdownitem-asChild.txt
Steps To Reproduce
Use asChild-prop on DropdownItem
Additional Information
No response