Skip to content

Commit

Permalink
Disable selection change when contenteditable=false
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Nov 21, 2019
1 parent 899e869 commit 3dd9ab1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/rich-text/src/component/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,10 @@ class RichText extends Component {
return;
}

if ( this.props.__unstableContentEditable === false ) {
return;
}

// In case of a keyboard event, ignore selection changes during
// composition.
if (
Expand Down

0 comments on commit 3dd9ab1

Please sign in to comment.