Allow cursor to be rendered at end of textbox by commenting out date comparison conditional

stable/1.0.x
crockwave 2020-05-06 18:58:21 -05:00
rodzic 2cd66dc1a5
commit a9af3a8928
2 zmienionych plików z 4 dodań i 2 usunięć

2
.gitignore vendored
Wyświetl plik

@ -6,3 +6,5 @@
/.eslintcache
/.env
/deploy.sh
/.vs/slnx.sqlite
/.vs/slnx.sqlite-journal

Wyświetl plik

@ -180,7 +180,7 @@ class ComposeForm extends ImmutablePureComponent {
// - Replying to zero or one users, places the cursor at the end of the textbox.
// - Replying to more than one user, selects any usernames past the first;
// this provides a convenient shortcut to drop everyone else from the conversation.
if (this.props.focusDate !== prevProps.focusDate) {
//if (this.props.focusDate !== prevProps.focusDate) {
let selectionEnd, selectionStart;
if (this.props.preselectDate !== prevProps.preselectDate) {
@ -196,7 +196,7 @@ class ComposeForm extends ImmutablePureComponent {
this.autosuggestTextarea.textarea.setSelectionRange(selectionStart, selectionEnd);
this.autosuggestTextarea.textarea.focus();
}
//}
}
setAutosuggestTextarea = (c) => {