Skip to content

Commit

Permalink
add check if there is a text in native event
Browse files Browse the repository at this point in the history
  • Loading branch information
dratwas committed Dec 19, 2019
1 parent 7e41eaa commit 0856422
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/rich-text/src/component/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,8 @@ export class RichText extends Component {
onBlur( event ) {
this.isTouched = false;

if ( event.nativeEvent.text !== this.props.value ) {
// Check if value is up to date with latest state of native AztecView
if ( event.nativeEvent.text && event.nativeEvent.text !== this.props.value ) {
this.onTextUpdate( event );
}

Expand Down

0 comments on commit 0856422

Please sign in to comment.