Skip to content

Commit

Permalink
Prevent empty string values for longhand border radii
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Jun 17, 2021
1 parent 3f4fd4e commit f276e8c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ export default function BoxInputControls( {
...props
} ) {
const createHandleOnChange = ( corner ) => ( next ) => {
onChange( { ...values, [ corner ]: next } );
onChange( {
...values,
[ corner ]: next ? next : undefined,
} );
};

// For backwards compatibility, handle possible flat string value.
Expand Down

0 comments on commit f276e8c

Please sign in to comment.