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
Clicking on the label changes the checked value of the switch.
Actual Behavior
Clicking on the label doesn't change the checked value of the switch, because event checked-changed is triggered twice, so it changes back to the original value.
The text was updated successfully, but these errors were encountered:
In my opinion and as I see in the implementation clicking on the label was intended to trigger the switch and change the checked value, but since it triggers the checked-change twice it does not do anything visually (switching the checked value to opposite and back).
I've already dived into it and trying to solve the issue. The component uses _preventDuplicateLabelClick from the ChoiceInputMixin. The same issue was present once in other components, but this function does not solve the issue in this case. As soon as I find a solution I create a fix PR.
Expected behavior
Clicking on the label changes the checked value of the switch.
Actual Behavior
Clicking on the label doesn't change the checked value of the switch, because event
checked-changed
is triggered twice, so it changes back to the original value.The text was updated successfully, but these errors were encountered: