From 4e3b931e388e3edb8eef709faf48b1bb8af50ac7 Mon Sep 17 00:00:00 2001 From: igoradamenko Date: Tue, 13 Feb 2018 00:28:14 +0200 Subject: [PATCH] reset input height after sending comment --- web/app/components/input/__button/input__button.scss | 2 +- web/app/components/input/input.jsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/web/app/components/input/__button/input__button.scss b/web/app/components/input/__button/input__button.scss index 51911d15..6cf3f2c8 100644 --- a/web/app/components/input/__button/input__button.scss +++ b/web/app/components/input/__button/input__button.scss @@ -11,7 +11,7 @@ padding: 0 10px; font-size: 16px; border: 0; - background: #00aaaa; + background: #0aa; border-radius: 0 $borderRadius $borderRadius 0; color: #fff; cursor: pointer; diff --git a/web/app/components/input/input.jsx b/web/app/components/input/input.jsx index b4fd3e02..55122cc0 100644 --- a/web/app/components/input/input.jsx +++ b/web/app/components/input/input.jsx @@ -46,6 +46,7 @@ export default class Input extends Component { } this.fieldNode.value = ''; + this.setState({ height: null }); }) .catch(() => { // TODO: do smth?