     .fail (xhr, status) =>
       @setState posting: false
       osu.ajaxError(xhr, status)
+
+
+  setTextarea: (ref) =>
+    @textarea = ref

  constructor: (props) ->
    super props

    @textareaRef = React.createRef()

    @state =
      message: @props.message ? ''

    blockClass += " #{bn}--compact" if @mode() == 'new'

    div className: blockClass,
      el TextareaAutosize,
        className: "#{bn}__message"
        innerRef: @setTextarea
        value: @state.message
        placeholder: osu.trans("comments.placeholder.#{@mode()}")
        onChange: @onChange
