Fixed #319 - Terminal should scroll to bottom after command

pull/345/head
cagataycivici 2020-05-16 11:50:34 +03:00
parent b8a3fb28d5
commit 25bd5b7565
1 changed files with 3 additions and 0 deletions

View File

@ -39,6 +39,9 @@ export default {
TerminalService.$on('response', this.responseListener);
this.$refs.input.focus();
},
updated() {
this.$el.scrollTop = this.$el.scrollHeight;
},
beforeDestroy() {
TerminalService.$off('response', this.responseListener);
},