Skip to content

Commit

Permalink
Wip: Mobile RichText - Updating old value after splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerardo Pacheco committed Mar 3, 2021
1 parent b691cac commit 2de1c15
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/rich-text/src/component/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -746,10 +746,10 @@ export class RichText extends Component {
}

componentDidUpdate( prevProps ) {
if ( this.props.value !== this.value ) {
this.value = this.props.value;
this.lastEventCount = undefined;
}
// if ( this.props.value !== this.value ) {
// this.value = this.props.value;
// this.lastEventCount = undefined;
// }
const { __unstableIsSelected: isSelected } = this.props;

const { __unstableIsSelected: prevIsSelected } = prevProps;
Expand Down

0 comments on commit 2de1c15

Please sign in to comment.