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 authored Jun 12, 2024
1 parent 851e2a0 commit 7eeb041
Show file tree
Hide file tree
Showing 2 changed files with 4 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
1 change: 1 addition & 0 deletions packages/react-native-editor/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ For each user feature we should also add a importance categorization label to i
## Unreleased
- [internal] Fix Inserter items list filtering [#62334]
- [*] Prevent hiding the keyboard when creating new list items [#62446]
- [*] RichText - Fix undefined onDelete callback [#62486]

## 1.120.0
- [*] Prevent deleting content when backspacing in the first Paragraph block [#62069]
Expand Down

0 comments on commit 7eeb041

Please sign in to comment.