-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SegmentedControl displays incorrect value after opening or collapsing AppShell Navbar #6527
Comments
Confirmed that this is also happening in my application and the Code Sandbox demonstrates the issue well 👍 |
I'd like to work on this issue. The problem seems to be related to this line of code. The opening of the AppShell Navbar changes the parent and triggers the useEffect in use-floating-indicator that calls the |
You are welcome to send a pr |
Please see #6622 |
@michaelperros Thank you for putting that PR together! I was just in the middle of butting heads with this bug in my app and was about to dig in. If @rtivital is happy with it, it would be great to get this fix into the next minor/patch release 🙂 |
Dependencies check up
What version of @mantine/* packages do you have in package.json?
7.11.2
What package has an issue?
@mantine/core
What framework do you use?
Next.js
In which browsers you can reproduce the issue?
All
Describe the bug
When a non-default option is selected in
SegmentedControl
, the incorrect value is displayed in SegmentedControl when the collapsed state ofAppShell.Navbar
changes. The actual state does not change, just the rendered value.Steps to reproduce
SegmentedControl
AppShell.Navbar
using the burger iconIf possible, include a link to a codesandbox with a minimal reproduction
https://codesandbox.io/p/sandbox/mantine-react-template-forked-lg4dq7
Possible fix
No response
Self-service
The text was updated successfully, but these errors were encountered: