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
Framework and version
Vue with the standard scale webcomponents
Current Behavior
The segmented button does not respect changes to selected attribute of its children. This means that the change behavior breaks as soon as the selection gets updated from outside control.
Expected Behavior
Segmented Button should respect selected state and be usable as fully controlled component
Code Reproduction
[https://codesandbox.io/p/sandbox/nice-morse-y7gr9f?file=%2Fsrc%2FApp.vue]
In this example, the segmented button breaks as soon as we selected option b and click the button above to update state. The ui updates properly, but to trigger a change event, the first (selected) button must be clicked instead of the unselected one.
Additional context
I'm not sure if this is the same problem as #1862 and is covered by #1885 as well. It reads similar.
The text was updated successfully, but these errors were encountered:
Scale Version
3.0.0.beta-140
Framework and version
Vue with the standard scale webcomponents
Current Behavior
The segmented button does not respect changes to selected attribute of its children. This means that the change behavior breaks as soon as the selection gets updated from outside control.
Expected Behavior
Segmented Button should respect selected state and be usable as fully controlled component
Code Reproduction
[https://codesandbox.io/p/sandbox/nice-morse-y7gr9f?file=%2Fsrc%2FApp.vue]
In this example, the segmented button breaks as soon as we selected option b and click the button above to update state. The ui updates properly, but to trigger a change event, the first (selected) button must be clicked instead of the unselected one.
Additional context
I'm not sure if this is the same problem as #1862 and is covered by #1885 as well. It reads similar.
The text was updated successfully, but these errors were encountered: