mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-10 18:29:03 +00:00
Make the scrolling compatible with our riot-web fix for https://github.com/vector-im/riot-web/issues/4821
This commit is contained in:
@@ -525,7 +525,8 @@ export default class MessageComposerInput extends React.Component {
|
|||||||
// composer. For some reason the editor won't scroll automatically if we paste
|
// composer. For some reason the editor won't scroll automatically if we paste
|
||||||
// blocks of text in or insert newlines.
|
// blocks of text in or insert newlines.
|
||||||
if (textContent.slice(selection.start).indexOf("\n") === -1) {
|
if (textContent.slice(selection.start).indexOf("\n") === -1) {
|
||||||
this.refs.editor.refs.editor.scrollTop = this.refs.editor.refs.editor.scrollHeight;
|
this.refs.editor.refs.editor.parentNode.parentNode.scrollTop = this.
|
||||||
|
refs.editor.refs.editor.parentNode.parentNode.scrollHeight;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user