Merge branch 'main' into glitch-soc/merge-upstream

This commit is contained in:
Claire committed 2021-03-24 10:53:50 +01:00
commit f60c99a8fb
53 files changed
+684 -404

No files matched your search

@@ -133,7 +133,15 @@ class ComposeForm extends ImmutablePureComponent {
}
}
componentDidMount () {
this._updateFocusAndSelection({ });
}
componentDidUpdate (prevProps) {
this._updateFocusAndSelection(prevProps);
}
_updateFocusAndSelection = (prevProps) => {
// This statement does several things:
// - If we're beginning a reply, and,
// - Replying to zero or one users, places the cursor at the end of the textbox.