Skip to content

Commit ebfd2a3

Browse files
committed
fix: clear textarea once submit successfully
1 parent ba14b10 commit ebfd2a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/TopicDetail/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ class TopicDetail extends Component {
121121
this.setState({
122122
reply: ''
123123
})
124+
this.refs.textarea.value = ''
124125
}
125126
})
126127
}

0 commit comments

Comments
 (0)