Skip to content
This repository was archived by the owner on Dec 23, 2021. It is now read-only.

Commit 1b25710

Browse files
Merge pull request #345 from microsoft/users/t-xunguy/switch-fix
Fix state of switch for CPX
2 parents f090660 + 80bc804 commit 1b25710

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/view/components/cpx/CpxImage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ export const updateSwitch = (switchState: boolean): void => {
380380
if (switchElement && switchInner) {
381381
svg.addClass(switchInner, "sim-slide-switch-inner");
382382

383-
if (switchState) {
383+
if (!switchState) {
384384
svg.addClass(switchInner, "on");
385385
switchInner.setAttribute("transform", "translate(-5,0)");
386386
} else {

0 commit comments

Comments
 (0)