Skip to content

Commit

Permalink
feat: Allow booleans to be 'locked' (disabled but text not greyed)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-polk committed Apr 9, 2024
1 parent c4d3afd commit 2b4e616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ContentPane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ export const ConfigrBoolean: React.FunctionComponent<
}}
control={control}
{...props}
// If it is locked, we want it to BE disabled but not LOOK disabld (the checkbox is
// If it is locked, we want it to BE disabled but not LOOK disabled (the checkbox is
// the control above, and will LOOK disabled for either disabled or locked or both).
// Note that the label will still BE disabled since we ignore clicks (above) if locked.
// Here, we want disabled to be false if locked, even if disabled is also true,
Expand Down

0 comments on commit 2b4e616

Please sign in to comment.