diff --git a/lib/site/topic-layout/topic-article/comments/form/autogrow-textarea.js b/lib/site/topic-layout/topic-article/comments/form/autogrow-textarea.js index c1e461637e..3bd7a5ab56 100644 --- a/lib/site/topic-layout/topic-article/comments/form/autogrow-textarea.js +++ b/lib/site/topic-layout/topic-article/comments/form/autogrow-textarea.js @@ -1,5 +1,4 @@ import React, {Component} from 'react' -import {findDOMNode} from 'react-dom' export default class AutoGrowTextarea extends Component { componentDidMount () { @@ -15,14 +14,14 @@ export default class AutoGrowTextarea extends Component { } recomputeSize = () => { - const node = findDOMNode(this) + const node = this.refs.textarea node.style.minHeight = 'auto' node.style.minHeight = `${node.scrollHeight}px` } render () { return ( -