Skip to content

Commit

Permalink
Mark unstable
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed May 18, 2020
1 parent 60f58d5 commit 195aa2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/block-editor/src/components/rich-text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function RichTextWrapper(
onRemove,
onMerge,
onSplit,
onSplitAtEnd,
__unstableOnSplitAtEnd: onSplitAtEnd,
__unstableOnSplitMiddle: onSplitMiddle,
identifier,
// To do: find a better way to implicitly inherit props.
Expand Down Expand Up @@ -361,7 +361,7 @@ function RichTextWrapper(
} else {
onChange( insertLineSeparator( value ) );
}
} else if ( shiftKey ) {
} else if ( shiftKey || ( ! canSplit && ! onSplitAtEnd ) ) {
if ( ! disableLineBreaks ) {
onChange( insert( value, '\n' ) );
}
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/image/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ export class ImageEdit extends Component {
}
isSelected={ this.state.captionFocused }
inlineToolbar
onSplitAtEnd={ () =>
__unstableOnSplitAtEnd={ () =>
insertBlocksAfter(
createBlock( 'core/paragraph' )
)
Expand Down

0 comments on commit 195aa2f

Please sign in to comment.