Skip to content

Commit

Permalink
Prevent the mixed placeholder form appearing when we're only modifyin…
Browse files Browse the repository at this point in the history
…g a single side
  • Loading branch information
youknowriad committed Dec 6, 2024
1 parent 0a9cf26 commit 6546f48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/components/src/box-control/input-control.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 ] =
Expand Down

0 comments on commit 6546f48

Please sign in to comment.