radix-ui / primitives

Radix Primitives is an open-source UI component library for building high-quality, accessible design systems and web apps. Maintained by @workos.
https://radix-ui.com/primitives
MIT License
15.91k stars 831 forks source link

React.Children.only error when i click button into DialogTrigger #3220

Closed sdilonedev closed 1 week ago

sdilonedev commented 1 week ago

Bug report

Current Behavior

When i click the button trigger show me this error: Error: React.Children.only expected to receive a single React element child.

Expected behavior

Make a click and the Dialog opens whitout problems

Reproducible example

CodeSandbox Template

Suggested solution

Additional context

Your environment

Software Name(s) Version
Radix Package(s) react-dialog 1.1.2
React n/a 18.3.1
Browser
Assistive tech
Node n/a
npm/yarn
Operating System Windwos 11

image