mantine icon indicating copy to clipboard operation
mantine copied to clipboard

SegmentedControl unexpected behavior with Next js

Open ibatukhtin opened this issue 2 years ago • 1 comments

What package has an issue

@mantine/core

Describe the bug

When the state changes outside of SegmentedControl then the previous state in SegmentedControl is not selected after that.

everything works fine with react https://codesandbox.io/s/blissful-poincare-zz9t2k

but not work with next js https://codesandbox.io/p/sandbox/naughty-moon-vz8djp

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.6

If possible, please include a link to a codesandbox with the reproduced problem

https://codesandbox.io/p/sandbox/naughty-moon-vz8djp

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

ibatukhtin avatar Oct 26 '23 14:10 ibatukhtin

Hello! Got the same problem

dmityabondar avatar Nov 13 '23 14:11 dmityabondar

Just a heads up, upgrading to Next.js 14 (without any other changes to the supplied sandbox) seems to resolve this issue. See here: https://codesandbox.io/p/sandbox/async-star-l3zmht

Zachary-Kaye avatar Mar 02 '24 21:03 Zachary-Kaye

Thanks for reporting @Zachary-Kaye

rtivital avatar Mar 03 '24 06:03 rtivital