From 6546f48cf36a85f398a33330b8abbdf277ce5aa7 Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Fri, 6 Dec 2024 12:19:05 +0100 Subject: [PATCH] Prevent the mixed placeholder form appearing when we're only modifying a single side --- packages/components/src/box-control/input-control.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/components/src/box-control/input-control.tsx b/packages/components/src/box-control/input-control.tsx index e0d0685e8e089f..b39040470dcf74 100644 --- a/packages/components/src/box-control/input-control.tsx +++ b/packages/components/src/box-control/input-control.tsx @@ -151,6 +151,7 @@ export default function BoxInputControl( { const hasValues = isValuesDefined( values ); const isMixed = hasValues && + defaultValuesToModify.length > 1 && isValuesMixed( values, selectedUnits, defaultValuesToModify ); const mixedPlaceholder = isMixed ? __( 'Mixed' ) : undefined; const [ parsedQuantity, parsedUnit ] =