yorkie-team / dashboard

Dashboard is an administrative tool that allows users to manage projects and documents with ease.
https://yorkie.dev/dashboard/
Apache License 2.0
20 stars 13 forks source link

Fix useOutsideClick hook #79

Closed chacha912 closed 1 year ago

chacha912 commented 1 year ago

What this PR does / why we need it?

Any background context you want to provide?

Popover.Target and Popover.Dropdown require an element or a component as a single child – strings, fragments, numbers and multiple elements/components are not supported and will throw error. Custom components must support ref prop to get root element ref. This is like Mantine UI library.

What are the relevant tickets?

Fixes #

Checklist