Skip to content

Commit

Permalink
Merge pull request #395 from WordPress/fix/suppress-contenteditable-w…
Browse files Browse the repository at this point in the history
…arning

Suppress freeform block contenteditable warning
  • Loading branch information
mtias authored Apr 11, 2017
2 parents 7fdb9f5 + 2cf6846 commit d0e3389
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion editor/blocks/freeform/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@ wp.blocks.registerBlock( 'core/freeform', {
},

edit( { attributes } ) {
return <div contentEditable>{ attributes.html }</div>;
return (
<div
contentEditable
suppressContentEditableWarning
>
{ attributes.html }
</div>
);
},

save( { attributes } ) {
Expand Down

0 comments on commit d0e3389

Please sign in to comment.