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
When replacing the segments array of a TouchBarSegmentedControl I expect the control to be completely replaced with the new values specified.
Actual Behavior
When a TouchBarSegmentedControl is created with a control that just has an icon and the segments are replaced with one that just has a label both the initial icon and the new label are show. The same happens when going from label to icon.
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
Expected Behavior
When replacing the
segments
array of aTouchBarSegmentedControl
I expect the control to be completely replaced with the new values specified.Actual Behavior
When a
TouchBarSegmentedControl
is created with a control that just has an icon and the segments are replaced with one that just has a label both the initial icon and the new label are show. The same happens when going from label to icon.To Reproduce
Repo example: https://github.com/MarcusNoble/electron-TouchBarSegmentedControl-bug/blob/42a5b8f0226b80a4900f21bc69d21cf25dcd4df7/main.js#L49-L67
Screenshots
Start with a control that just has an icon:
Replace the control with one that just has a label. The icon remains (even if set to undefined or null):
Replace again with one that has a different icon. The label remains.
The text was updated successfully, but these errors were encountered: