I’m sure there is a more efficient way to do this, but it suited my needs.
<script>
$(function() {
$('textarea').keyup(function(){
$(this).each(function(index, element) {
$(element).height(element.scrollHeight);
});
}).keyup(); //trigger event to initialize pre-filled textareas
});
</script>
Enjoy 🙂