This is a bug report.
Steps to replicate:
1. AccordionSV with 2 item.
2. Item 1 is a Horizontal SV with 3 buttons with toggle number of 10
3. Item 2 is a Horizontal SV with 3 buttons with toggle number of 10
4. Click button 1 in accordion Item 1.
5. Collapse accordion Item 1.
6. Open accordion Item 2.
7. Click button 1 in Item 2.
8. Open accordion item1.
9. Both buttons are highlighted instead of only one button.
Just fought this bug yesterday. This is happening, because you need to reset Toggle groupe to initial state before you disable your items.
How to replicate this bug:
Toggle groupe contains 2 items - Toggle1 and Toggle2.
Both toggles are in group 1.
Toggle 1 has Starting state bool active.
When panel with troggles goes active, Toggle1 is checked, Toggle2 is not.
If you select Toggle2 by clicking on it. Then Toggle2 goes checked, and Toggle1 is not.
To this point everything goes normal. But then:
If you deactivate panel gameObject, and then you activate it again, you will have both toggles checked.
To fight it i just use on toggle root panel this script.
OnDisable()
{
foreach (var toggle in GetComponentsInChildren<UIToggle>())
{
toggle.value = toggle.startsActive;
}
}