#Issue with Segmented Control value inside an Accordion

4 messages · Page 1 of 1 (latest)

tame garden
#

Here is a minimal example: https://codesandbox.io/p/sandbox/mantine-react-template-forked-rnsn6f?file=%2Fsrc%2FApp.tsx

Problem description:
The Segmented Control is used within an Accordion.
When switching accordion items and returning to the Segmented Control, the previously selected value is still displayed, but the visual indicator resets to the default value.

Current workaround:
The issue can be solved by removing the Accordion transition and using a controlled Segmented Control.

Limitations of the current workaround:
My client does not like the lack of transition.
Using a controlled Segmented Control is restrictive.

mighty epoch
tame garden
mighty epoch