Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
yinxin630 committed Jul 17, 2019
1 parent b27e1c6 commit e77b3c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/modules/main/chatPanel/chat/ChatInput.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class ChatInput extends Component {
const sel = document.selection.createRange();
sel.text = value;
sel.select();
} else if (input.selectionStart || input.selectionStart === '0') {
} else if (input.selectionStart || input.selectionStart === 0) {
const startPos = input.selectionStart;
const endPos = input.selectionEnd;
const restoreTop = input.scrollTop;
Expand Down

0 comments on commit e77b3c7

Please sign in to comment.