[vwc-button-toggle-group] race condition between values
property and child buttons in the main slot
#1321
Labels
Type: Bug 🐞
Something isn't working
Describe the bug
There is a bit cumbersome logic buried here and here
and this line is not allowing setting an empty array as a value w/o immediate npe 😄
and this logic needs to be re written in order to support races between properties and children's
To Reproduce
values
property to some meaningful state like['foo']
values
& childrens it's not always works as expectedExpected behavior
values
property should allow idempotent usage, no matter when and how many times this property is set, the state should be consistent and independent from absence and/or presence of child buttons, since element is actually allows children mutations in runtime 😃 cite from here:One can add more buttons dynamically
Additional context
originated from this issue
The text was updated successfully, but these errors were encountered: