Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
docs: Fix simple typo, sibbling -> sibling (#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: #2384

Reviewed By: creedarky

Differential Revision: D21318376

Pulled By: mrkev

fbshipit-source-id: 1a31e3724d7813e7ce6d36aba57ce298e742d46d
  • Loading branch information
timgates42 authored and facebook-github-bot committed Apr 30, 2020
1 parent 497a478 commit d1cb1e7
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 d1cb1e7

Please sign in to comment.