@webscopeio/react-console
Advanced tools
Comparing version
@@ -34,2 +34,3 @@ /** | ||
clear: () => void; | ||
scrollToBottom: () => void; | ||
onSubmit: (e: any) => Promise<void>; | ||
@@ -36,0 +37,0 @@ render(): JSX.Element; |
@@ -119,2 +119,7 @@ import { createElement, Component } from 'react'; | ||
}; | ||
_this.scrollToBottom = function () { | ||
setTimeout(function () { | ||
_this.wrapperRef.scrollTop = _this.wrapperRef.scrollHeight; | ||
}); | ||
}; | ||
_this.onSubmit = function (e) { return __awaiter(_this, void 0, void 0, function () { | ||
@@ -137,2 +142,3 @@ var _a, prompt, inputString, log, _b, cmd, args, command, ret, cmdNotFound; | ||
}); | ||
this.scrollToBottom(); | ||
return [2 /*return*/]; | ||
@@ -165,2 +171,3 @@ } | ||
this.inputRef.focus(); | ||
this.scrollToBottom(); | ||
return [2 /*return*/]; | ||
@@ -167,0 +174,0 @@ } |
@@ -123,2 +123,7 @@ 'use strict'; | ||
}; | ||
_this.scrollToBottom = function () { | ||
setTimeout(function () { | ||
_this.wrapperRef.scrollTop = _this.wrapperRef.scrollHeight; | ||
}); | ||
}; | ||
_this.onSubmit = function (e) { return __awaiter(_this, void 0, void 0, function () { | ||
@@ -141,2 +146,3 @@ var _a, prompt, inputString, log, _b, cmd, args, command, ret, cmdNotFound; | ||
}); | ||
this.scrollToBottom(); | ||
return [2 /*return*/]; | ||
@@ -169,2 +175,3 @@ } | ||
this.inputRef.focus(); | ||
this.scrollToBottom(); | ||
return [2 /*return*/]; | ||
@@ -171,0 +178,0 @@ } |
{ | ||
"name": "@webscopeio/react-console", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "React component that emulates console behaviour", | ||
@@ -5,0 +5,0 @@ "author": "jvorcak", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
73762
1.88%467
3.32%