]> cat aescling's git repositories - mastodon.git/commitdiff
Fix Textarea height should be reset upon sending toot #2189 (#2236)
authorAndrey Blinov <kodnaplakal@gmail.com>
Thu, 20 Apr 2017 21:53:54 +0000 (00:53 +0300)
committerEugen <eugen@zeonfederated.com>
Thu, 20 Apr 2017 21:53:54 +0000 (23:53 +0200)
app/assets/javascripts/components/features/compose/components/compose_form.jsx

index 805aad3d52dd69f44e3a7d1f745b91090ec5209d..e6e68351e2bd90f51c7b0f2493e1df148c3fe600 100644 (file)
@@ -62,6 +62,7 @@ const ComposeForm = React.createClass({
   },
 
   handleSubmit () {
+    this.autosuggestTextarea.textarea.style.height = "auto";
     this.props.onSubmit();
   },