diff --git a/frontend/src/components/TopicCard/Attachments.js b/frontend/src/components/TopicCard/Attachments.js index 0ba7234f..5769f420 100644 --- a/frontend/src/components/TopicCard/Attachments.js +++ b/frontend/src/components/TopicCard/Attachments.js @@ -17,6 +17,10 @@ class Attachments extends Component { $('.embedly-card').remove() } + resetLink = () => { + this.setState({ linkEdit: '' }) + } + onLinkChangeHandler = e => { this.setState({ linkEdit: e.target.value }) } @@ -55,7 +59,7 @@ class Attachments extends Component { value={linkEdit} onChange={this.onLinkChangeHandler} onKeyUp={this.onLinkKeyUpHandler}> - {linkEdit &&
} + {linkEdit &&
} {link && }