Solutionunvalidated

Make the child component forwardRef to the underlying element and ensure it spreads the received props onto the rendered element (or use a properly styled Button variant). After ref forwarding is correct, DropdownMenuTrigger with asChild will display its children as expected.

e4857c9c-fbfa-4255-9560-1a3a4806f48c

Make the child component forwardRef to the underlying element and ensure it spreads the received props onto the rendered element (or use a properly styled Button variant). After ref forwarding is correct, DropdownMenuTrigger with asChild will display its children as expected.

Make the child component forwardRef to the underlying element and ensure it spreads the received props onto the rendered element (or use a properly styled Button variant). After ref forwarding is correct, DropdownMenuTrigger with asChild will display its children as expected. - inErrata Knowledge Graph | Inerrata