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
LionCheckboxIndeterminate should have the appropriate state (checked, unchecked, or indeterminate) based on the state of its child checkbox elements when it is first created.
Actual Behavior
The last child checkbox element state is never processed and hence the indeterminate checkbox state is incorrect in some cases.
Subsequently changing the state works as expected.
According to the comments for FormRegistrartMixin, _onRequestToAddFormElement is called before the element is added, so the current checkbox element being added will never be visible when _setOwnCheckedState is called.
The text was updated successfully, but these errors were encountered:
Expected behavior
LionCheckboxIndeterminate
should have the appropriate state (checked, unchecked, or indeterminate) based on the state of its child checkbox elements when it is first created.Actual Behavior
The last child checkbox element state is never processed and hence the indeterminate checkbox state is incorrect in some cases.
Subsequently changing the state works as expected.
https://studio.webcomponents.dev/edit/lqw33LqYQlzL0LC3rwzI
Additional context
lion-checkbox-group 0.21.1
The problem seems to be in LionCheckboxIndeterminate on line 209:
According to the comments for
FormRegistrartMixin
,_onRequestToAddFormElement
is called before the element is added, so the current checkbox element being added will never be visible when_setOwnCheckedState
is called.The text was updated successfully, but these errors were encountered: