Skip to content

Commit

Permalink
Does this work? 🤔
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Apr 29, 2021
1 parent 8827b08 commit ddd2b50
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/components/src/font-size-picker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
/>
Expand Down

0 comments on commit ddd2b50

Please sign in to comment.