Skip to content

Commit

Permalink
disable checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
jerader committed Jul 28, 2023
1 parent b9aef5e commit 32762ae
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const CheckboxRowField = (props: CheckboxRowProps): JSX.Element => {
const [targetProps, tooltipProps] = useHoverTooltip({
placement: tooltipPlacement,
})

console.log(value)
return (
<>
{tooltipContent && (
Expand All @@ -54,7 +54,7 @@ export const CheckboxRowField = (props: CheckboxRowProps): JSX.Element => {
onChange={(e: React.ChangeEvent<HTMLSelectElement>) =>
updateValue(!value)
}
value={Boolean(value)}
value={disabled ? false : Boolean(value)}
/>
{value && !disabled && !isIndeterminate ? children : null}
</div>
Expand Down

0 comments on commit 32762ae

Please sign in to comment.