Skip to content

Commit b73bdfa

Browse files
committed
fix: reset custom fontsize
1 parent fc2dd44 commit b73bdfa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/font-size/inline-ui.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ function InlineUI( {
4949
);
5050

5151
const handleFontSizeChange = ( newFontSize ) => {
52+
if ( ! newFontSize ) {
53+
onChange( removeFormat( value, 'blablablocks/font-size' ) );
54+
return;
55+
}
56+
5257
if ( newFontSize ) {
5358
// Find the font size object to get the slug
5459
const fontSizeObj = fontSizes?.find(

0 commit comments

Comments
 (0)