Skip to content

Commit

Permalink
[Mobile] - RichText - Fix undefined onDelete callback (#62486)
Browse files Browse the repository at this point in the history
* Native RichText - Fix undefined onDelete callback

* Update changelog

Co-authored-by: geriux <geriux@git.wordpress.org>
Co-authored-by: twstokes <twstokes@git.wordpress.org>
  • Loading branch information
3 people committed Jun 18, 2024
1 parent d5392db commit 27e2a1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,9 @@ export class RichText extends Component {
return;
}

onDelete( { isReverse, value } );
if ( onDelete ) {
onDelete( { isReverse, value } );
}

event.preventDefault();
this.lastAztecEventType = 'input';
Expand Down
3 changes: 3 additions & 0 deletions packages/react-native-editor/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ For each user feature we should also add a importance categorization label to i

## Unreleased

## 1.120.1
- [*] RichText - Fix undefined onDelete callback [#62486]

## 1.120.0
- [*] Prevent deleting content when backspacing in the first Paragraph block [#62069]
- [internal] Adds new bridge functionality for updating content [#61796]
Expand Down

0 comments on commit 27e2a1b

Please sign in to comment.