diff options
author | 2018-06-21 10:13:12 +0300 | |
---|---|---|
committer | 2023-01-13 10:37:53 +0300 | |
commit | 114792eeff9a9887214eadd2224386e314438cd6 (patch) | |
tree | 7e2f25f5056f1b2b2fb60baf577c7d54de841440 /vnext/src/components/MessageInput.js | |
parent | b257e179862d0b895d6e7be30136018515de564c (diff) |
Clear message input on send
Diffstat (limited to 'vnext/src/components/MessageInput.js')
-rw-r--r-- | vnext/src/components/MessageInput.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vnext/src/components/MessageInput.js b/vnext/src/components/MessageInput.js index 57ee8f3c..e8e4c99a 100644 --- a/vnext/src/components/MessageInput.js +++ b/vnext/src/components/MessageInput.js @@ -40,6 +40,10 @@ export default class MessageInput extends React.Component { body: this.state.body, attach: this.state.attach ? input.files[0] : '' }) + this.setState({ + body: '', + attach: '' + }) } componentDidMount() { |