Skip to content

Commit

Permalink
Add back value prop to the most popular core blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Dec 14, 2024
1 parent a051d8a commit 59efa28
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-library/src/button/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ function ButtonEdit( props ) {
<RichText
ref={ mergedRef }
attributeKey="text"
value={ text }
aria-label={ __( 'Button text' ) }
placeholder={ placeholder || __( 'Add text…' ) }
onChange={ ( value ) =>
Expand Down
1 change: 1 addition & 0 deletions packages/block-library/src/heading/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ function HeadingEdit( {
<RichText
tagName={ tagName }
attributeKey="content"
value={ content }
onChange={ onContentChange }
onMerge={ mergeBlocks }
onReplace={ onReplace }
Expand Down
1 change: 1 addition & 0 deletions packages/block-library/src/paragraph/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ function ParagraphBlock( {
<RichText
tagName="p"
attributeKey="content"
value={ content }
{ ...blockProps }
onMerge={ mergeBlocks }
onReplace={ onReplace }
Expand Down

0 comments on commit 59efa28

Please sign in to comment.