Skip to content

Commit

Permalink
Fix editor scrolling in the wrong position when breaking a big block
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaudcolas committed Jan 10, 2018
1 parent 537ea49 commit e05df07
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/components/DraftailEditor.scss
Expand Up @@ -23,6 +23,12 @@
}
}

// Fix editor scrolling in the wrong position when breaking a big block.
// See https://github.com/facebook/draft-js/issues/304#issuecomment-327606596.
.DraftEditor-root {
overflow: auto;
}

.public-DraftEditor-content,
.public-DraftEditorPlaceholder-root {
padding: $editor-spacing;
Expand Down

0 comments on commit e05df07

Please sign in to comment.