Skip to content

Commit

Permalink
Block Editor: Fix react warning error in Change indentation popover
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Mar 8, 2024
1 parent f83fb78 commit dddef2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/block-editor/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export default function HTMLEdit( { attributes, isSelected, setAttributes, toggl
{ replaceSetting.beforeInsertSpaces && (
<TextControl
label={ __( 'Current indent width', 'custom-html-block-extension' ) }
value={ replaceSetting.beforeTabSize }
value={ replaceSetting.beforeTabSize || '' }
type="number"
min="1"
max="8"
Expand Down Expand Up @@ -272,7 +272,7 @@ export default function HTMLEdit( { attributes, isSelected, setAttributes, toggl
{ replaceSetting.afterInsertSpaces && (
<TextControl
label={ __( 'New indent width', 'custom-html-block-extension' ) }
value={ replaceSetting.afterTabSize }
value={ replaceSetting.afterTabSize || '' }
type="number"
min="1"
max="8"
Expand Down

0 comments on commit dddef2f

Please sign in to comment.