diff --git a/packages/editor/src/components/rich-text/index.native.js b/packages/editor/src/components/rich-text/index.native.js index 53be0a39ba7a1f..5417dd3eb90006 100644 --- a/packages/editor/src/components/rich-text/index.native.js +++ b/packages/editor/src/components/rich-text/index.native.js @@ -193,7 +193,11 @@ export class RichText extends Component { } onSelectionChange( start, end ) { - this.setState( { start, end } ); + // `end` can be less than `start` on iOS + // Let's fix that here so `rich-text/slice` can work properly + const realStart = Math.min( start, end ); + const realEnd = Math.max( start, end ); + this.setState( { start: realStart, end: realEnd } ); } isEmpty() {