mirror of
https://github.com/vector-im/element-web.git
synced 2025-09-30 18:11:20 +02:00
Merge pull request #5621 from SimonBrandner/fix-jump-on-reaction
Don't jump to bottom on reaction
This commit is contained in:
commit
295cf12cf8
@ -229,7 +229,7 @@ export default class MessagePanel extends React.Component {
|
|||||||
|
|
||||||
onAction = (payload) => {
|
onAction = (payload) => {
|
||||||
switch (payload.action) {
|
switch (payload.action) {
|
||||||
case "message_sent":
|
case "scroll_to_bottom":
|
||||||
this.scrollToBottom();
|
this.scrollToBottom();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -403,6 +403,7 @@ export default class SendMessageComposer extends React.Component {
|
|||||||
this._editorRef.clearUndoHistory();
|
this._editorRef.clearUndoHistory();
|
||||||
this._editorRef.focus();
|
this._editorRef.focus();
|
||||||
this._clearStoredEditorState();
|
this._clearStoredEditorState();
|
||||||
|
dis.dispatch({action: "scroll_to_bottom"});
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user