Skip to content

Commit

Permalink
Use stored record
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed May 9, 2021
1 parent 688c271 commit 04a1377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rich-text/src/component/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ function RichText(
event.preventDefault();
if ( onEnter ) {
onEnter( {
value: removeEditorOnlyFormats( createRecord() ),
value: removeEditorOnlyFormats( record.current ),
onChange: handleChange,
shiftKey: event.shiftKey,
} );
Expand Down

0 comments on commit 04a1377

Please sign in to comment.