Skip to content

Commit

Permalink
Level needs to be save block attributes or parse will fail. (#9741)
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioEstevao authored Sep 10, 2018
1 parent 9e56083 commit 960bb6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/heading/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class HeadingEdit extends Component {
} }
onChange={ ( event ) => {
// Create a React Tree from the new HTML
const newParaBlock = parse( `<!-- wp:heading --><${ tagName }>${ event.content }</${ tagName }><!-- /wp:heading -->` )[ 0 ];
const newParaBlock = parse( `<!-- wp:heading {"level":${ level }} --><${ tagName }>${ event.content }</${ tagName }><!-- /wp:heading -->` )[ 0 ];
setAttributes( {
...this.props.attributes,
content: newParaBlock.attributes.content,
Expand Down

0 comments on commit 960bb6e

Please sign in to comment.