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 24, 2021
1 parent c00fe03 commit 1dc8a7e
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 1dc8a7e

Please sign in to comment.