Skip to content

Commit

Permalink
Fix input/checkbox default values (SlimeVR#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
loucass003 authored Feb 4, 2023
1 parent 212afc0 commit 62a72b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gui/src/components/commons/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function CheckBox({
<input
ref={ref}
onChange={onChange}
checked={value}
checked={value || false}
name={name}
className={classes.checkbox}
type="checkbox"
Expand Down
2 changes: 1 addition & 1 deletion gui/src/components/commons/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const InputInside = forwardRef<
autoComplete={autocomplete ? 'off' : 'on'}
onChange={onChange}
name={name}
value={value}
value={value || ''}
ref={ref}
></input>
{type === 'password' && (
Expand Down

0 comments on commit 62a72b2

Please sign in to comment.