From d3a99895330e6d7faf27367f2af5ec6f7caca7c4 Mon Sep 17 00:00:00 2001 From: igoradamenko Date: Thu, 3 May 2018 02:53:21 +0300 Subject: [PATCH] hide preview on input --- web/app/components/input/input.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/app/components/input/input.jsx b/web/app/components/input/input.jsx index cffdbd7b..0726d6ae 100644 --- a/web/app/components/input/input.jsx +++ b/web/app/components/input/input.jsx @@ -30,7 +30,10 @@ export default class Input extends Component { autoResize() { this.fieldNode.style.height = ''; - this.setState({ height: this.fieldNode.scrollHeight }); + this.setState({ + height: this.fieldNode.scrollHeight, + preview: null, + }); } send(e) {