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

This commit is contained in:
crockwave 2020-05-06 18:58:21 -05:00
parent 2cd66dc1a5
commit a9af3a8928
2 changed files with 4 additions and 2 deletions

2
.gitignore vendored
View file

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

View file

@ -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) => {