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 wanted to create a component that is able to toggle the color scheme with a Switch component. A standard Switch that I copied from the docs has a nice toggling animation. However, when setting onChange to run the toggleColorScheme function (from the docs, see sandbox), the Switch toggle animation does not run and it instantly changes.
toggleBug.mov
Note: I'm using 7.1.5 in my own project, but in the sandbox (which uses 7.1.3) the bug also appears.
What version of @mantine/* packages do you have in package.json? (Note that all @mantine/* packages must have the same version in order to work correctly)
7.1.5
If possible, please include a link to a codesandbox with the reproduced problem
What package has an issue
@mantine/core
Describe the bug
I wanted to create a component that is able to toggle the color scheme with a Switch component. A standard Switch that I copied from the docs has a nice toggling animation. However, when setting
onChange
to run thetoggleColorScheme
function (from the docs, see sandbox), the Switch toggle animation does not run and it instantly changes.toggleBug.mov
Note: I'm using 7.1.5 in my own project, but in the sandbox (which uses 7.1.3) the bug also appears.
What version of @mantine/* packages do you have in package.json? (Note that all @mantine/* packages must have the same version in order to work correctly)
7.1.5
If possible, please include a link to a codesandbox with the reproduced problem
https://codesandbox.io/s/sharp-dawn-k54q7k
Do you know how to fix the issue
No
Are you willing to participate in fixing this issue and create a pull request with the fix
None
Possible fix
No response
The text was updated successfully, but these errors were encountered: