sforkowany z mirror/soapbox
Allow cursor to be rendered at end of textbox by commenting out date comparison conditional
rodzic
2cd66dc1a5
commit
a9af3a8928
|
@ -6,3 +6,5 @@
|
|||
/.eslintcache
|
||||
/.env
|
||||
/deploy.sh
|
||||
/.vs/slnx.sqlite
|
||||
/.vs/slnx.sqlite-journal
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Ładowanie…
Reference in New Issue