Skip to content

Commit

Permalink
docs: Fix simple typo, sibbling -> sibling (facebookarchive#2384)
Browse files Browse the repository at this point in the history
Summary:
There is a small typo in src/component/contents/exploration/DraftEditorBlockNode.react.js, src/model/modifier/exploration/NestedRichTextEditorUtil.js.

Should read `sibling` rather than `sibbling`.
Pull Request resolved: facebookarchive#2384

Reviewed By: creedarky

Differential Revision: D21318376

Pulled By: mrkev

fbshipit-source-id: 1a31e3724d7813e7ce6d36aba57ce298e742d46d
  • Loading branch information
timgates42 authored and vilemj-Viclick committed Jul 16, 2020
1 parent 171d00d commit 47c9d5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const applyWrapperElementToSiblings = (
): Array<React.Node> => {
const wrappedSiblings = [];

// we check back until we find a sibbling that does not have same wrapper
// we check back until we find a sibling that does not have same wrapper
for (const sibling: any of nodes.reverse()) {
if (sibling.type !== Element) {
break;
Expand Down
2 changes: 1 addition & 1 deletion src/model/modifier/exploration/NestedRichTextEditorUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ const NestedRichTextEditorUtil: RichTextUtils = {
}
}

// if we have a next sibbling we should not allow the normal backspace
// if we have a next sibling we should not allow the normal backspace
// behaviour of moving this text into its parent
// if (currentBlock.getPrevSiblingKey()) {
// return editorState;
Expand Down

0 comments on commit 47c9d5c

Please sign in to comment.