From 32762ae10afc396068ea8f2bc82d90324169cf0b Mon Sep 17 00:00:00 2001 From: Jethary Date: Fri, 28 Jul 2023 16:20:26 -0400 Subject: [PATCH] disable checkbox --- .../src/components/StepEditForm/fields/CheckboxRowField.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol-designer/src/components/StepEditForm/fields/CheckboxRowField.tsx b/protocol-designer/src/components/StepEditForm/fields/CheckboxRowField.tsx index 2a80a7874bad..130ebbfe8e2c 100644 --- a/protocol-designer/src/components/StepEditForm/fields/CheckboxRowField.tsx +++ b/protocol-designer/src/components/StepEditForm/fields/CheckboxRowField.tsx @@ -35,7 +35,7 @@ export const CheckboxRowField = (props: CheckboxRowProps): JSX.Element => { const [targetProps, tooltipProps] = useHoverTooltip({ placement: tooltipPlacement, }) - + console.log(value) return ( <> {tooltipContent && ( @@ -54,7 +54,7 @@ export const CheckboxRowField = (props: CheckboxRowProps): JSX.Element => { onChange={(e: React.ChangeEvent) => updateValue(!value) } - value={Boolean(value)} + value={disabled ? false : Boolean(value)} /> {value && !disabled && !isIndeterminate ? children : null}