diff --git a/packages/components/src/font-size-picker/index.js b/packages/components/src/font-size-picker/index.js index e0505fa825484..da6c925aaac5d 100644 --- a/packages/components/src/font-size-picker/index.js +++ b/packages/components/src/font-size-picker/index.js @@ -137,7 +137,11 @@ function FontSizePicker( __unstableInputWidth="60px" value={ value } onChange={ ( nextSize ) => { - onChange( nextSize ); + if ( 0 === parseFloat( nextSize ) || ! nextSize ) { + onChange( undefined ); + } else { + onChange( nextSize ); + } } } units={ CSS_UNITS } />