You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just came across this with useElementSize as well. It looks like it was introduced in 7.15.0. It switched from ref: import("react").RefObject<T>; to ref: import("react").RefObject<T | null>;.
Dependencies check up
What version of @mantine/* packages do you have in package.json?
7.15.1
What package has an issue?
@mantine/hooks
What framework do you use?
Vite
In which browsers you can reproduce the issue?
None
Describe the bug
useClickOutside returns
Which is readonly. React's types don't allow you to pass this to
<div ref=
which is the canonical example given in the docs.If possible, include a link to a codesandbox with a minimal reproduction
No response
Possible fix
I believe this should be MutableRefObject instead
Self-service
The text was updated successfully, but these errors were encountered: