Skip to content
Snippets Groups Projects
Commit 957182bf authored by Djorkaeff Alexandre's avatar Djorkaeff Alexandre Committed by Diego Mello
Browse files

[FIX] App crash with backspace on input message (#906)

* Fix - App crash with backspace on input message

* Improving code to fix backspace bug

* Fix destructuring undefined

* Improvement code to fix backspace bug
parent 29286e98
No related branches found
No related tags found
No related merge requests found
......@@ -188,7 +188,7 @@ class MessageBox extends Component {
this.handleTyping(!isTextEmpty);
this.setInput(text);
if (this.component) {
if (!isTextEmpty) {
const { start, end } = this.component._lastNativeSelection;
const cursor = Math.max(start, end);
const lastNativeText = this.component._lastNativeText;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment