Skip to content

Commit

Permalink
fix(ui): change switch value to checked
Browse files Browse the repository at this point in the history
  • Loading branch information
yzh990918 committed May 10, 2023
1 parent ae35e15 commit 7733a3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ui/base/Toggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const Toggle = (inputProps: Props) => {
const [state, send] = useMachine(zagSwitch.machine({
id: createUniqueId(),
readOnly: props.readOnly,
value: props.value(),
checked: props.value(),
onChange({ checked }) {
if (hack_FirstTimeRender) {
hack_FirstTimeRender = false
Expand Down

0 comments on commit 7733a3f

Please sign in to comment.