From 03ef2bd06e5ca5e26fe90aae08373f67505bb046 Mon Sep 17 00:00:00 2001 From: TJ Durnford Date: Thu, 2 May 2019 09:03:26 -0700 Subject: [PATCH] Fixed chat send history functionality on Firefox and Edge --- samples/17.chat-send-history/src/App.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/samples/17.chat-send-history/src/App.js b/samples/17.chat-send-history/src/App.js index a5af9f5585..6fe247bb06 100644 --- a/samples/17.chat-send-history/src/App.js +++ b/samples/17.chat-send-history/src/App.js @@ -42,9 +42,7 @@ export default class App extends React.Component { switch (e.key) { case 'ArrowUp': - if (target.selectionStart === 0) { - text = this.history.getNext(); - } + text = this.history.getNext(); break; case 'ArrowDown': text = this.history.getPrevious();