Skip to content

Commit

Permalink
Fixed chat send history functionality on Firefox and Edge
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurnford committed May 2, 2019
1 parent 98c662f commit 03ef2bd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions samples/17.chat-send-history/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 03ef2bd

Please sign in to comment.