diff options
Diffstat (limited to 'webapp/components/textbox.jsx')
-rw-r--r-- | webapp/components/textbox.jsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/webapp/components/textbox.jsx b/webapp/components/textbox.jsx index 7f3dc1891..21f784af5 100644 --- a/webapp/components/textbox.jsx +++ b/webapp/components/textbox.jsx @@ -157,6 +157,10 @@ export default class Textbox extends React.Component { this.setState({preview: !this.state.preview}); } + hidePreview() { + this.setState({preview: false}); + } + componentWillReceiveProps(nextProps) { if (nextProps.channelId !== this.props.channelId) { // Update channel id for AtMentionProvider. |