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 have verified that I use latest version of all @mantine/* packages
What version of @mantine/* packages do you have in package.json?
7.3.2
What package has an issue?
@mantine/hooks
What framework do you use?
Vite
In which browsers you can reproduce the issue?
Not applicable – issue is not related to the browser
Describe the bug
The scrollableRef and targetRef fields of result of useScrollIntoView hook are RefObject, not MutableRefObject as it is presented here
If possible, include a link to a codesandbox with a minimal reproduction
No response
Possible fix
I think it can be fixed by fixing type declarations, namely just replacing RefObject by MutableRefObject in useScrollIntoView declaration and by changing this line
Dependencies check up
What version of @mantine/* packages do you have in package.json?
7.3.2
What package has an issue?
@mantine/hooks
What framework do you use?
Vite
In which browsers you can reproduce the issue?
Not applicable – issue is not related to the browser
Describe the bug
The
scrollableRef
andtargetRef
fields of result ofuseScrollIntoView
hook areRefObject
, notMutableRefObject
as it is presented hereIf possible, include a link to a codesandbox with a minimal reproduction
No response
Possible fix
I think it can be fixed by fixing type declarations, namely just replacing RefObject by MutableRefObject in
useScrollIntoView
declaration and by changing this linemantine/packages/@mantine/hooks/src/use-scroll-into-view/use-scroll-into-view.ts
Line 38 in 260a4d6
Self-service
The text was updated successfully, but these errors were encountered: